On Fri, Nov 19, 2010 at 2:59 AM, C M <cmpyt...@gmail.com> wrote: > 2) How can I get the lines belonging to different axes to cycle > through colors such that the same color is not used for any lines > shown in the plot? (that is, I don't want to hard code a color to any > line, I want it to auto-cycle). >
ax1 = subplot(121) ax2 = subplot(122) import itertools clist = ['b', 'g', 'r', 'c', 'm', 'y', 'k'] color_cycle = itertools.cycle(clist) ax1.set_color_cycle(color_cycle) ax2.set_color_cycle(color_cycle) ax1.plot([1,2,3]) ax2.plot([1,3,2]) -JJ ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users