• Re: Multiple coloured point lines

    From Karl Ratzsch@21:1/5 to All on Thu Feb 22 21:15:12 2024
    The syntax is

    plot x lc rgb "black", x/2 lc rgb "red"

    You missed the "lc" specifier.



    Am 21.02.2024 um 14:21 schrieb db:
    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?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)