Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #4655 > unrolled thread
| Started by | db <dieterhansbritz@gmail.com> |
|---|---|
| First post | 2024-02-21 14:21 +0100 |
| Last post | 2024-02-22 21:15 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
Multiple coloured point lines db <dieterhansbritz@gmail.com> - 2024-02-21 14:21 +0100
Re: Multiple coloured point lines Karl Ratzsch <mail.kfr@gmx.net> - 2024-02-22 21:15 +0100
| From | db <dieterhansbritz@gmail.com> |
|---|---|
| Date | 2024-02-21 14:21 +0100 |
| Subject | Multiple coloured point lines |
| Message-ID | <ur4tc7$35ets$1@dont-email.me> |
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
[toc] | [next] | [standalone]
| From | Karl Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Date | 2024-02-22 21:15 +0100 |
| Message-ID | <ur8a0d$fifs$1@solani.org> |
| In reply to | #4655 |
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?
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web