Skip to content

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

Closed
@battisti456

Description

@battisti456

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions