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

[ENH]: Add get_xmargin, get_ymargin, get_zmargin axes methods #26281

Closed
anntzer opened this issue Jul 10, 2023 · 2 comments · Fixed by #26293
Closed

[ENH]: Add get_xmargin, get_ymargin, get_zmargin axes methods #26281

anntzer opened this issue Jul 10, 2023 · 2 comments · Fixed by #26293

Comments

@anntzer
Copy link
Contributor

anntzer commented Jul 10, 2023

Problem

Currently, I think the only public API to retrieve the margins settings on an Axes is ax.margins(), which has a somewhat peculiar API (basically inherited from pyplot/matlab); adding get_xmargin/get_ymargin/get_zmargin Axes methods would be nice (there's already the corresponding setters).

Bonus points for moving the private _xmargin/_ymargin/_zmargin to the Axis instances, adding Axis.{get,set}_margin, and using axis_method_wrapper, though I haven't checked it'll actually work.

Proposed solution

No response

@turnipseason
Copy link
Contributor

Hi!
Does zmargin exist? I couldn't find it -- both the public docs and the code in _base.py only have xmargin and ymargin. Am I missing something?

@oscargus
Copy link
Contributor

It is in Axes3D.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants