Skip to content

Commit

Permalink
Backport PR matplotlib#29254: DOC: Add note to align_labels()
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic authored and meeseeksmachine committed Dec 12, 2024
1 parent b4e60b6 commit f900403
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions lib/matplotlib/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1382,8 +1382,8 @@ def align_xlabels(self, axs=None):
Notes
-----
This assumes that ``axs`` are from the same `.GridSpec`, so that
their `.SubplotSpec` positions correspond to figure positions.
This assumes that all Axes in ``axs`` are from the same `.GridSpec`,
so that their `.SubplotSpec` positions correspond to figure positions.
Examples
--------
Expand Down Expand Up @@ -1444,8 +1444,8 @@ def align_ylabels(self, axs=None):
Notes
-----
This assumes that ``axs`` are from the same `.GridSpec`, so that
their `.SubplotSpec` positions correspond to figure positions.
This assumes that all Axes in ``axs`` are from the same `.GridSpec`,
so that their `.SubplotSpec` positions correspond to figure positions.
Examples
--------
Expand Down Expand Up @@ -1500,8 +1500,8 @@ def align_titles(self, axs=None):
Notes
-----
This assumes that ``axs`` are from the same `.GridSpec`, so that
their `.SubplotSpec` positions correspond to figure positions.
This assumes that all Axes in ``axs`` are from the same `.GridSpec`,
so that their `.SubplotSpec` positions correspond to figure positions.
Examples
--------
Expand Down Expand Up @@ -1544,6 +1544,11 @@ def align_labels(self, axs=None):
matplotlib.figure.Figure.align_xlabels
matplotlib.figure.Figure.align_ylabels
matplotlib.figure.Figure.align_titles
Notes
-----
This assumes that all Axes in ``axs`` are from the same `.GridSpec`,
so that their `.SubplotSpec` positions correspond to figure positions.
"""
self.align_xlabels(axs=axs)
self.align_ylabels(axs=axs)
Expand Down

0 comments on commit f900403

Please sign in to comment.