Gnuplot






Dynamical generating the plot commands :

"Still, if you think that all those repetitive plot commands with only
one value changed between them are an eyesore - well, there is a way
in version 4.4+ to do it in a more elegant way (for some value of
"elegant"):

myplot(x) = sprintf("plot 'datafile' u 2:($1== %f ? $3 : 1/0)", x)

set multiplot layout 4,2
eval myplot(0)
eval myplot(1.5)
#...
eval myplot(pi)
unset multiplot

This is essentially dynamically generating the necessary plot commands
with the actual value-to-be-tested inserted each time."

Péter Juhász




Main page


Autor: Adam Majewski

Feel free to e-mail me. (:-)) adammaj1-at-o2-dot--pl

Strona utworzona przy pomocy programu: EditPlus www.editplus.com

About