zorder for collections

Hi,

I would like to set the zorder on a collection e.g. PatchCollection. By looking at the matplotlib source code in collections.py, I figured that it would be possible to set the zorder attribute of a collection manually, e.g.

p = PatchCollection(...)
p.zorder = ...

but I was wondering whether it would make sense to allow zorder to be passed as a keyword argument when initializing a collection, or when running ax.add_collection, or is there a reason that this was not done?

Cheers,
Tom

I don't see a good reason why this was not done. (Maybe someone else has the historical context, if any).

Would you mind adding an issue to the tracker for this?

Mike

ยทยทยท

On 04/02/2011 06:25 AM, Thomas Robitaille wrote:

Hi,

I would like to set the zorder on a collection e.g. PatchCollection. By looking at the matplotlib source code in collections.py, I figured that it would be possible to set the zorder attribute of a collection manually, e.g.

p = PatchCollection(...)
p.zorder = ...

but I was wondering whether it would make sense to allow zorder to be passed as a keyword argument when initializing a collection, or when running ax.add_collection, or is there a reason that this was not done?

Cheers,
Tom
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
   
--
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA