Skip to content

[Doc]: matplotlib.figure.Figure.subplots_adjust figure #30022

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

Closed
battisti456 opened this issue May 6, 2025 · 2 comments · Fixed by #30029
Closed

[Doc]: matplotlib.figure.Figure.subplots_adjust figure #30022

battisti456 opened this issue May 6, 2025 · 2 comments · Fixed by #30029

Comments

@battisti456
Copy link

Documentation Link

https://matplotlib.org/stable/api/_as_gen/matplotlib.figure.Figure.subplots_adjust.html#matplotlib.figure.Figure.subplots_adjust

Problem

The image implies "right" and "top" are given as distances from the nearest subplot, while in reality, they are supposed to be expressed as distances from the zero coordinate of the figure.

As an example, to center a figure one might give this according to the diagram:

fig.subplots_adjust(
  right = 0.2,
  left = 0.2,
  bottom = 0.2,
  top = 0.2
)

while the correct arguments would be:

fig.subplots_adjust(
  right = 0.8,
  left = 0.2,
  bottom = 0.2,
  top = 0.8
)

Suggested improvement

A simple correction of the diagram would likely be sufficient.

@Bindi003
Copy link

Bindi003 commented May 7, 2025

Hi I'd like to work on this

@timhoffm
Copy link
Member

timhoffm commented May 8, 2025

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