|
From: <pl...@pi...> - 2012-05-14 14:04:47
|
On 05/14/12 09:51, 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 ... > > Mojca > Thanks but I think you missed the point . The line I posted was using the datafile as data , that could be made more concise by using the empty quotes syntax. My problem is to use the inline data format with plot "-" followed by the data then the termination line 'e' . This does not work using the empty bracket syntax because it does not reread the data lines that follow. Only the first line gets plotted , the rest throw an error about "skipping line with no data". Thx. |