8000 ENH better wording in the subplots docstring · matplotlib/matplotlib@2c98c6d · GitHub
[go: up one dir, main page]

Skip to content

Commit 2c98c6d

Browse files
committed
ENH better wording in the subplots docstring
1 parent 54d422a commit 2c98c6d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/matplotlib/pyplot.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,20 +1054,20 @@ def subplots(nrows=1, ncols=1, sharex=False, sharey=False, squeeze=True,
10541054
Number of columns of the subplot grid.
10551055
10561056
sharex : bool or string, optional, default: False
1057-
- If True, the X axis will be shared amongst all subplots.
1057+
- If True, the x-axis will be shared amongst all subplots.
10581058
- If False, no axis will be shared amongst subplots.
10591059
- If a string must be one of "row", "col", "all", or "none".
10601060
- "all" has the same effect as True.
10611061
- "none" has the same effect as False.
1062-
- If "row", each subplot row will share a X axis.
1063-
- If "col", each subplot column will share a X axis.
1062+
- If "row", each subplot row will share a x-axis.
1063+
- If "col", each subplot column will share a x-axis.
10641064
10651065
Note that if the x-axis is shared across rows (sharex=True or
1066-
sharex="col") and nrows > 1 then the x tick labels won't be displayed
1067-
on any of plots but the ones on the bottom row.
1066+
sharex="col"), then the x tick labels will only be display on subplots
1067+
of the bottom row.
10681068
10691069
sharey : bool or string, optional, default: False
1070< 8000 /code>-
- If True, the Y axis will be shared amongst all subplots.
1070+
- If True, the y-axis will be shared amongst all subplots.
10711071
- If False, no y-axis will be shared amongst subplots.
10721072
- If a string must be one of "row", "col", "all", or "none".
10731073
- "all" has the same effect as True.
@@ -1076,8 +1076,8 @@ def subplots(nrows=1, ncols=1, sharex=False, sharey=False, squeeze=True,
10761076
- If "col", each subplot column will share a y-axis
10771077
10781078
Note that if the y-axis is shared across columns (sharey=False or
1079-
sharey="col") and ncols > 1 then the y tick labels won't be displayed
1080-
on any of the plots but the ones on the first column.
1079+
sharey="col"), 1 then the y tick labels will only be displayed on
1080+
subplots of the first column.
10811081
10821082
squeeze : bool, optional, default: True
10831083
- If True, extra dimensions are squeezed out from the returned axis

0 commit comments

Comments
 (0)
0