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

implemented support for asymmetric margins. #2276

Closed
wants to merge 3 commits into from

Conversation

tacaswell
Copy link
Member

Addresses issue #1912

Changes the api in a backwards compatible way on Axes.set_xmargin, Axes.set_ymargin, and Axes3D.set_zmargin by adding an optional parameter.

Changes api in non-backwards compatible way in the return value of Axes.margins() (xmargin, ymargin) -> ((left, right), (bottom, top))and similar forAxes3D.margins()`.

@@ -48,6 +48,23 @@ original location:
- mstream -> `from matplotlib import stream as mstream`
- mtable -> `from matplotlib import table as mtable`

* To accomodate adding asymetric margins, additional optional arguements
Copy link
Member

Choose a reason for hiding this comment

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

Spelling: -> arguments

@efiring
Copy link
Member

efiring commented Aug 10, 2013

How does this relate to #2263?

I'm not sure what to do about the return value change. In principle it would break user code. In practice, there might be very little user code that uses the return value.

@tacaswell
Copy link
Member Author

gah, sorry about that. I need to make sure the spell-checker actually runs an *.rst files.

I can convince my self that #2263 is both a good and bad idea, but it certainly conflicts with this branch.

@mdboom
Copy link
Member

mdboom commented Aug 12, 2013

The problem, as I see it, with #2263 is that it does something with Axis that should be handled in the Locator. Perhaps it makes sense to handle margins in the Locator, too...

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