From: Allin C. <cot...@wf...> - 2012-05-14 13:23:29
|
On Mon, 14 May 2012, Mojca Miklavec wrote: > On Mon, May 14, 2012 at 8:21 AM, <pl...@pi...> wrote: >> HI, >> >> I am plotting some data from a data file with four columns to produce >> three plot lines. >> >> set timefmt "%d.%m.%y:%H:%M"; set xdata time >> plot "fast.log" using 1:2 t "systolic" w l, "fast.log" using 1:3 t >> "diastolic" w l, "fast.log" using 1:4 t "pulse" w l >> >> To save having a separate gnuplot script file I was trying to put these >> two lines at the head of the data and use the plot '-' feature. But this >> involves reading the data three times and I can't see how to do it. >> >> Before suggesting ways this could be improved I was wondering whether I >> was missing a trick. > > Simply use empty quotation marks: > plot "fast.log" using 1:2 t "systolic" w l, "" using ... This doesn't work in the context plotter specified, namely when you replace the data file "fast.log" with inline data in the plot file, using "plot '-'". I too would be interested to know if there's any way to avoid repeating the inline data when plotting multiple lines. Allin Cottrell |