how to get the properties for elements in a collection?

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.

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.grohmann@...287...> 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

See below for available public methods.

http://matplotlib.sourceforge.net/api/collections_api.html#matplotlib.collections.Collection

-JJ

···

On Tue, Aug 18, 2009 at 6:16 PM, Jae-Joon Lee<lee.j.joon@...287...> wrote:

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.grohmann@...287...> 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