8000 [ENH]: Add get_xmargin, get_ymargin, get_zmargin axes methods · Issue #26281 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
[ENH]: Add get_xmargin, get_ymargin, get_zmargin axes methods #26281
Closed
@anntzer

Description

@anntzer

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0