Thanks to visit codestin.com
Credit goes to github.com

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

Open
battisti456 opened this issue May 6, 2025 · 0 comments
Open

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

battisti456 opened this issue May 6, 2025 · 0 comments

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.

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

No branches or pull requests

1 participant