On 2/23/07, Jouni K. Seppänen <[EMAIL PROTECTED]> wrote: > Brian Blais <[EMAIL PROTECTED]> writes: > > > Is there a way to specify the default order of line colors and > > styles, for plot commands given in sequence > > I don't think there is built-in support for this. See e.g. > http://thread.gmane.org/gmane.comp.python.matplotlib.general/5708 > for some previous discussion and suggestions.
It's probably worth mentioning that the cyclers John mentions are trivial to write using itertools: colorcycler = itertools.cycle(['blue','green','red','magenta','cyan']) linecycler = itertools.cycle([ '-','--', '-.' , ':' ]) n = itertools.count() y = array([1,2,3]) Then, try: for i in range(10): plot(y+n.next(),color=c.next(),linestyle=linecycler.next()) plot(y+n.next(),color=c.next(),linestyle=linecycler.next()) plot(y+n.next(),color=c.next(),linestyle=linecycler.next()) plot(y+n.next(),color=c.next(),linestyle=linecycler.next()) plot(y+n.next(),color=c.next(),linestyle=linecycler.next()) plot(y+n.next(),color=c.next(),linestyle=linecycler.next()) plot(y+n.next(),color=c.next(),linestyle=linecycler.next()) plot(y+n.next(),color=c.next(),linestyle=linecycler.next()) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users