Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf900403

Browse files
QuLogicmeeseeksmachine
authored andcommitted
Backport PR#29254: DOC: Add note to align_labels()
1 parentb4e60b6 commitf900403

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

‎lib/matplotlib/figure.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,8 +1382,8 @@ def align_xlabels(self, axs=None):
13821382
13831383
Notes
13841384
-----
1385-
This assumes that ``axs`` are from the same `.GridSpec`, so that
1386-
their `.SubplotSpec` positions correspond to figure positions.
1385+
This assumes thatall Axes in``axs`` are from the same `.GridSpec`,
1386+
so thattheir `.SubplotSpec` positions correspond to figure positions.
13871387
13881388
Examples
13891389
--------
@@ -1444,8 +1444,8 @@ def align_ylabels(self, axs=None):
14441444
14451445
Notes
14461446
-----
1447-
This assumes that ``axs`` are from the same `.GridSpec`, so that
1448-
their `.SubplotSpec` positions correspond to figure positions.
1447+
This assumes thatall Axes in``axs`` are from the same `.GridSpec`,
1448+
so thattheir `.SubplotSpec` positions correspond to figure positions.
14491449
14501450
Examples
14511451
--------
@@ -1500,8 +1500,8 @@ def align_titles(self, axs=None):
15001500
15011501
Notes
15021502
-----
1503-
This assumes that ``axs`` are from the same `.GridSpec`, so that
1504-
their `.SubplotSpec` positions correspond to figure positions.
1503+
This assumes thatall Axes in``axs`` are from the same `.GridSpec`,
1504+
so thattheir `.SubplotSpec` positions correspond to figure positions.
15051505
15061506
Examples
15071507
--------
@@ -1544,6 +1544,11 @@ def align_labels(self, axs=None):
15441544
matplotlib.figure.Figure.align_xlabels
15451545
matplotlib.figure.Figure.align_ylabels
15461546
matplotlib.figure.Figure.align_titles
1547+
1548+
Notes
1549+
-----
1550+
This assumes that all Axes in ``axs`` are from the same `.GridSpec`,
1551+
so that their `.SubplotSpec` positions correspond to figure positions.
15471552
"""
15481553
self.align_xlabels(axs=axs)
15491554
self.align_ylabels(axs=axs)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp