octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Octave-bug-tracker] [bug #39585] plot3 ignores setting color throug


From: Michael D. Godfrey
Subject: Re: [Octave-bug-tracker] [bug #39585] plot3 ignores setting color through linespec
Date: Sun, 28 Jul 2013 01:05:37 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7

On 07/27/2013 11:58 PM, anonymous wrote:
Details:

On my machine, the first time I use plot3 on a figure, the line will be red.
If I then do "hold on" and use plot3 again, the next line will be blue. Next
call gives light blue. The 4'th call gives yellow. Subsequent calls repeat
this sequence. If I try to set the line color by passing '-b', '-r', '-g',
etc. these options are ignored. Colors work as expected in 2D plots.

Run the following to reproduce this behavior:

figure
plot3([0,1],[0,1],[0,1],'-b','linewidth',3);
hold on
plot3([1,0.5],[0,1],[0.5,0.5],'-b','linewidth',3);
plot3([0,-1],[0.8,-1],[-0.3,-1],'-b','linewidth',3);

Plot more lines, if desired and you should see the colors cycle.

I just tried this on the current Octave devel system.
Using Gnuplot the colors are as you reported.

But, using fltk they are correct.

So, you might try:
graphics_toolkit('fltk')

and then your sequence above.

Michael




reply via email to

[Prev in Thread] Current Thread [Next in Thread]