Here's a skeleton, for a series of lines that get darker and more solid (from past to present, as I use it):
from itertools import cycle grey_linestyles = cycle(map(lambda tu: dict(zip(('color','dashes'),tu)),(('0.5',(4,1,1,1)),('0.4',(2,1)), ('0.3',(5,1,2,1)),('0.2',(4,1)),('0.1',(6,1)),('0.0',(10,1)),('0.0', (20,1))))) class IsotoProfileFigure(Figure): def __init__(self, *args, **kwargs): self.linestyles = grey_linestyles def plot(self, gases, label='_nolegend'): style = self.linestyles.next() #TODO: allow for usual style modifiers passed in self.isoaxis.plot(deltas,self.verts,label=label, **style) On Mar 9, 2010, at 9 Mar, 1:52 PM, Alan G Isaac wrote: > I need a figure containing color line plots to > be changed to grayscale, cycling through line > styles instead of colors. How? > > Thanks, > Alan Isaac > > PSI suppose I searched the web ineffectively on this, > but I did try. > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users Chloe Lewis Graduate student, Amundson Lab Ecosystem Sciences 137 Mulford Hall Berkeley, CA 94720-3114 http://nature.berkeley.edu/~chlewis ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users