db
2024-04-29 14:50:59 UTC
In a script intended to plot two sets of data points,
the plotting statement is
plot 'plotII.dat' w p pt 7 rgb "blue",\
'plotIII.dat' w p pt 7 rgb "red"
This produces the following error message.
gnuplot> plot 'plotII.dat' w p pt 7 rgb "blue", 'plotIII.dat' w p pt 7
rgb "red"
^
line 0: unexpected or unrecognized token: rgb
But if I remove the second half, from the comma
onwards, it does plot the first set as blue points.
Why is this, and what should I do?
the plotting statement is
plot 'plotII.dat' w p pt 7 rgb "blue",\
'plotIII.dat' w p pt 7 rgb "red"
This produces the following error message.
gnuplot> plot 'plotII.dat' w p pt 7 rgb "blue", 'plotIII.dat' w p pt 7
rgb "red"
^
line 0: unexpected or unrecognized token: rgb
But if I remove the second half, from the comma
onwards, it does plot the first set as blue points.
Why is this, and what should I do?
--
db
db