How to plot data without a separate file by specifying all points inside the Gnuplot script? -
my program generates bash scripts call gnuplot. don't want have make file store data; there way can explicitly call of values? or possibly having bash make temporary file.
something like
plot {(1,5),(2,10),(3,1)}
is looking for.
you can use syntax inline data - filename '-'
.
the following example produces simple plot in gif
image (bash
script):
gnuplot << eof set terminal gif set output 'plot1.gif' plot '-' using 1:2 1 10 2 20 3 32 4 40 5 50 e eof
Comments
Post a Comment