|
From: | c. |
Subject: | Re: set(h,'color',[1,0,0 ; 0,1,0 ; 0,0,0]) or set(h,'color',mat2cell(rainbow(3))) ?? |
Date: | Thu, 5 Jan 2012 18:08:29 +0100 |
On 5 Jan 2012, at 17:37, 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). > set (0, 'defaultaxescolororder', rainbow(200)) Have a look at section "Managing Default Properties" in the manual, for more details. c.
[Prev in Thread] | Current Thread | [Next in Thread] |