vehemental wrote: > > Hi, I may be wrong, but arent these already examples of what you trying to > show here?: > > http://matplotlib.sourceforge.net/examples/pylab_examples/line_collection2.html > http://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_collection.html > > if you use a collection you can quickly setup the colors of all your > elements..by just passing an array.... > > jimmy > >
"same same, but different"... I guess here one would have to assume you're only plotting lines? Or only plotting ellipses, but say for example you had different types of plots you would make, and just need a set of collections.. say you wanted to mix scatter plots with line plots. The point is, yes, you're correct, I think this basically does do what I'm talking about, but having a way to create a 'generic' set of colors that can be indexed I think is nice. There may be a more 'matplotlibish' way to do it, I just didn't find it. Seem ultimately there should be something like: from matplotlib.colors import colorset where colorset could just be defined with an integer as the number of colors, and perhaps a cmap as an option... Maybe it's there?!?! I just haven't found it. My sudo code would be: plotcolors = colorset(10,cmap=cm.jet) for i in range(len(dataset)): x,y = dataset[i] plot(x,y, plotcolors[i]) ... or something. **Note: I realize this isn't the best example, as plot(X,Y) would do it automagically... -- View this message in context: http://www.nabble.com/contribute-to-gallery--Or%2C-just-advice-on-changing-colors-automagically....-tp24419101p24427781.html Sent from the matplotlib - users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users