Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added explicit 'zorder' kwarg to Colection and LineCollection. #1654

Merged
merged 2 commits into from Jan 14, 2013

Conversation

tacaswell
Copy link
Member

Vaguely related to issue #1622. Changed the location of the default zorder of Collection and LineCollection from a class level-member, to explicitly being a keyword argument.

I think this makes it clearer, but isn't strictly necessary, because if zorder is included as a kwarg, it will get set by the self.update anyway.

removed class level zorder assignment.

It is not strictly necessary for LineCollection to take zorder as a
kwarg, but added to keep the default zorder the same
@@ -959,6 +964,9 @@ def __init__(self, segments, # Can be None.
*pickradius* is the tolerance for mouse clicks picking a line.
The default is 5 pt.

*zorder*
2 the zorder of the LineCollection
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line should probably be more along the lines of:

@pelson
Copy link
Member

pelson commented Jan 14, 2013

Good stuff @tacaswell - I'm amazed we have come so far without zorder for Collections!

@dmcdougall
Copy link
Member

Thanks @tacaswell, merging.

@dmcdougall
Copy link
Member

(The Travis failures are duds)

dmcdougall added a commit that referenced this pull request Jan 14, 2013
added explicit 'zorder' kwarg to `Colection` and `LineCollection`.
@dmcdougall dmcdougall merged commit 06d7f9c into matplotlib:master Jan 14, 2013
@tacaswell tacaswell deleted the collection_zorder_kwarg branch January 14, 2013 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants