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: kloof
Subject: Re: set(h,'color',[1,0,0 ; 0,1,0 ; 0,0,0]) or set(h,'color',mat2cell(rainbow(3))) ??
Date: Fri, 6 Jan 2012 08:12:34 -0800 (PST)

On Thu, Jan 05, 2012 at 10:13:32AM -0800, bpabbott [via Octave] wrote:

>
>
>
> 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
>
> _______________________________________________
> Help-octave mailing list
> [hidden email]
> https://mailman.cae.wisc.edu/listinfo/help-octave
>
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://octave.1599824.n4.nabble.com/set-h-color-1-0-0-0-1-0-0-0-0-or-set-h-color-mat2cell-rainbow-3-tp3046817p4266461.html
>
> To unsubscribe from set(h,'color',[1,0,0 ; 0,1,0 ; 0,0,0])  or set(h,'color',mat2cell(rainbow(3))) ??, visit thank you!


View this message in context:
Re: set(h,'color',[1,0,0 ; 0,1,0 ; 0,0,0]) or set(h,'color',mat2cell(rainbow(3))) ??
Sent from the Octave - General mailing list archive at Nabble.com.

reply via email to

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