help-octave
[Top][All Lists]
Advanced

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

Re: set(h,'color',[1,0,0 ; 0,1,0 ; 0,0,0]) or set(h,'color',mat2cell(ra


From: Ben Abbott
Subject: Re: set(h,'color',[1,0,0 ; 0,1,0 ; 0,0,0]) or set(h,'color',mat2cell(rainbow(3))) ??
Date: Thu, 05 Jan 2012 13:12:16 -0500

On Jan 5, 2012, at 11:37 AM, kloof wrote:

> Dear all,
> 
> I have done as Ben has proposed above. Now I'd like to define the colors
> like above 
> 
> ( set(gca,'colororder',rainbow(200)) )
> 
> and then do 
> 
> plot(x,y)
> plot(x,y2)
> ...etc
> 
> It seems that the 'colororder' is obeyed by the first plot command, but the
> second one 'resets' it: the color of 'y2' is blue again, i.e. the standard
> color order is put back by the second plot command.
> 
> Is there a way around this? (to fix the color order during the session).
> 


Add "hold all" after the first plot.

        plot(x,y)
        hold all
        plot(x,y2)

Ben



reply via email to

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