Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #4662 > unrolled thread
| Started by | db <dieterhansbritz@gmail.com> |
|---|---|
| First post | 2024-04-29 14:50 +0000 |
| Last post | 2024-04-30 21:30 +0200 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
rgb db <dieterhansbritz@gmail.com> - 2024-04-29 14:50 +0000
Re: rgb Jörg Buchholz <bookwood4new@freenet.de> - 2024-04-30 07:12 +0200
Re: rgb db <dieterhansbritz@gmail.com> - 2024-04-30 08:35 +0000
Re: rgb Karl Ratzsch <mail.kfr@gmx.net> - 2024-04-30 21:30 +0200
| From | db <dieterhansbritz@gmail.com> |
|---|---|
| Date | 2024-04-29 14:50 +0000 |
| Subject | rgb |
| Message-ID | <v0oc4j$1q4cj$1@dont-email.me> |
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?
--
db
[toc] | [next] | [standalone]
| From | Jörg Buchholz <bookwood4new@freenet.de> |
|---|---|
| Date | 2024-04-30 07:12 +0200 |
| Message-ID | <v0puk8$299bi$1@dont-email.me> |
| In reply to | #4662 |
On 29.04.2024 16:50, db wrote:
> 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?
>
morning,
you must put a "lc" for linecolor in front of the rgb.
plot 'plotII.dat' w p pt 7 lc rgb "blue",\
'plotIII.dat' w p pt 7 lc rgb "red"
Jörg
[toc] | [prev] | [next] | [standalone]
| From | db <dieterhansbritz@gmail.com> |
|---|---|
| Date | 2024-04-30 08:35 +0000 |
| Message-ID | <v0qag6$2bti5$1@dont-email.me> |
| In reply to | #4663 |
On Tue, 30 Apr 2024 07:12:42 +0200, Jörg Buchholz wrote: > On 29.04.2024 16:50, db wrote: >> 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? >> >> > morning, > > you must put a "lc" for linecolor in front of the rgb. > > plot 'plotII.dat' w p pt 7 lc rgb "blue",\ > 'plotIII.dat' w p pt 7 lc rgb "red" > > Jörg Thank you, that works. I wonder why it works for just one without the lc. -- db
[toc] | [prev] | [next] | [standalone]
| From | Karl Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Date | 2024-04-30 21:30 +0200 |
| Message-ID | <v0rgt6$7bdp$1@solani.org> |
| In reply to | #4664 |
Am 30.04.2024 um 10:35 schrieb db:
> On Tue, 30 Apr 2024 07:12:42 +0200, Jörg Buchholz wrote:
>
>> On 29.04.2024 16:50, db wrote:
>>> 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?
>>>
>>>
>> morning,
>>
>> you must put a "lc" for linecolor in front of the rgb.
>>
>> plot 'plotII.dat' w p pt 7 lc rgb "blue",\
>> 'plotIII.dat' w p pt 7 lc rgb "red"
>>
>> Jörg
>
> Thank you, that works. I wonder why it works for
> just one without the lc.
>
Doesn't work here, neither with 5.4 or 6.0
gnuplot> plot '+' w p pt 7 rgb 'blue'
^
unexpected or unrecognized token: rgb
or an ancient 4.6
gnuplot> plot '+' w p pt 7 rgb 'blue'
^
';' expected
Best, Karl
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web