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

Change color of points

10,746 views
Skip to first unread message

christian.ma...@googlemail.com

unread,
Jan 20, 2008, 4:03:51 AM1/20/08
to
Dear all,

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

Ethan Merritt

unread,
Jan 20, 2008, 2:04:27 PM1/20/08
to
In article <7a2d1026-1089-490e...@e23g2000prf.googlegroups.com>,

<christian.ma...@googlemail.com> wrote:
>
>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.

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

Ethan Merritt

unread,
Jan 20, 2008, 2:07:07 PM1/20/08
to
In article <fn05vr$n94$1...@brogar.bmsc.washington.edu>,
Ethan Merritt <mer...@u.washington.edu> wrote:
>

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

christian.ma...@googlemail.com

unread,
Jan 22, 2008, 12:39:55 PM1/22/08
to
On 20 Jan., 20:07, merr...@u.washington.edu (Ethan Merritt) wrote:
> In article <fn05vr$n9...@brogar.bmsc.washington.edu>,

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.

0 new messages