db
2024-02-21 13:21:11 UTC
Here is a mini example
gnuplot << eoi
set term postscript enh color eps 24
set output 'mini.eps'
set xlabel "x"
plot x w p pt 7 rgb 'black', \
x/2 w p pt 7 rgb 'red'
quit
eoi
gv mini.eps
This baulks at the first "rgb":
gnuplot> plot x w p pt 7 rgb 'black', x/2 w p pt 7 rgb 'red'
^
line 0: unexpected or unrecognized token: rgb
But if I leave out the second plot line (and terminate
the first properly (no ", \)) it gives me a plot of
a lot of blue points.
Why can't I have several coloured plots?
gnuplot << eoi
set term postscript enh color eps 24
set output 'mini.eps'
set xlabel "x"
plot x w p pt 7 rgb 'black', \
x/2 w p pt 7 rgb 'red'
quit
eoi
gv mini.eps
This baulks at the first "rgb":
gnuplot> plot x w p pt 7 rgb 'black', x/2 w p pt 7 rgb 'red'
^
line 0: unexpected or unrecognized token: rgb
But if I leave out the second plot line (and terminate
the first properly (no ", \)) it gives me a plot of
a lot of blue points.
Why can't I have several coloured plots?
--
Dieter Britz
Dieter Britz