sct1 = axes.scatter(x,y, c=some_list, cmap=plt.get_cmap(colmap)) colors = sct1.get_facecolors()
The return value is an array of rgb values. -JJ On Mon, Aug 17, 2009 at 3:40 PM, Carlos Grohmann<carlos.grohm...@gmail.com> wrote: > Hi, I have a collection, which is a scatter plot, and I want to > iterate through all the elements in this collection and retrieve their > properties, like facecolor. > > the scatterplot is created like this: > > axes.scatter(x,y, c=some_list, cmap=plt.get_cmap(colmap)) > > many thanks > > -- > Carlos Henrique Grohmann - Geologist D.Sc. > a.k.a. Guano - Linux User #89721 > ResearcherID: A-9030-2008 > > http://digitalelevation.blogspot.com > > http://www.igc.usp.br/pessoais/guano > _________________ > Can’t stop the signal. > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users