I am plotting points and lines in 2d. Both seperately though. Now, I
am looking for a way to change the color of the points for the
epslatex terminal.
I found that set style only changes the color of lines, not of points
(pointtype and pointsize can be changed only).
Real life example: I need linestyle 9 and pointstyle 9 both to be ion
yellow instead of standard red (for epslatex terminal).
Does anyone of you know a way? That would be highly appreciated!
Best regards,
Christian
The epslatex terminal has undergone more changes than most, so the answer
may well depend on exactly which version of gnuplot you are using.
>Real life example: I need linestyle 9 and pointstyle 9 both to be ion
>yellow instead of standard red (for epslatex terminal).
In the current version of gnuplot (4.2) this command will work for any
terminal that support color, including epslatex:
plot 'foo' using lines linecolor rgb "yellow", \
'baz' using points linecolor rgb "yellow"
Or if you want to attach that to linestyle 9:
set style line 9 linecolor rgb "yellow"
plot 'foo' using line ls 9, 'baz' using points ls 9
--
Ethan A Merritt
Bleah. Not enough coffee this morning.
That should be "with" rather than "using" in all cases:
plot 'foo' with lines linecolor rgb "yellow", \
'baz' with points linecolor rgb "yellow"
set style line 9 linecolor rgb "yellow"
plot 'foo' with line ls 9, 'baz' with points ls 9
sorry for the confusion
>In the current version of gnuplot (4.2) this command will work for any
>terminal that support color, including epslatex:
>
> plot 'foo' using lines linecolor rgb "yellow", \
> 'baz' using points linecolor rgb "yellow"
>
>Or if you want to attach that to linestyle 9:
>
> set style line 9 linecolor rgb "yellow"
> plot 'foo' using line ls 9, 'baz' using points ls 9
>--
>Ethan A Merritt
--
Ethan A Merritt
Ethan,
thanks a lot you for the quick answer.
It works indeed (I am using version 4.2) - I just did not realize that
for setting color for _points_ I need to use _line_color.