Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Multiple coloured point lines

31 views
Skip to first unread message

db

unread,
Feb 21, 2024, 8:21:14 AMFeb 21
to
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?
--
Dieter Britz
0 new messages