On 2/23/07, Fernando Perez <[EMAIL PROTECTED]> wrote: > 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:
Sorry, tab put me in the 'send' button in gmail too early... I meant: import itertools colorcycler = itertools.cycle(['blue','green','red','magenta','cyan']).next linecycler = itertools.cycle([ '-','--', '-.' , ':' ]).next n = itertools.count().next y = array([1,2,3]) for i in range(10): plot(y+n(),color=colorcycler(),linestyle=linecycler()) Cheers, f ------------------------------------------------------------------------- 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