| Credits | Overview | Plotting Styles | Commands | Terminals |
|---|
The evaluate command executes gnuplot commands contained in a string or in a function block. Newline characters are not allowed within the string.
evaluate "commands in a string constant"
evaluate string_valued_function( ... arguments ... )
evaluate $functionblock( ... arguments ... )
This is especially useful for a repetition of similar commands.
Example:
set_label(x, y, text) \
= sprintf("set label '%s' at %f, %f point pt 5", text, x, y)
eval set_label(1., 1., 'one/one')
eval set_label(2., 1., 'two/one')
eval set_label(1., 2., 'one/two')
Please see function blocks and substitution macros for other mechanisms that construct or execute strings containing gnuplot commands.