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

Skip to content

Commit a1e7282

Browse files
committed
DOC FIX axis -> x-axis in subplots
1 parent 20cd16a commit a1e7282

2 files changed

Lines changed: 25 additions & 25 deletions

File tree

lib/matplotlib/figure.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,12 +1030,12 @@ def subplots(self, nrows=1, ncols=1, sharex=False, sharey=False,
10301030
10311031
sharex : {"none", "all", "row", "col"} or bool, default: False
10321032
- If True, the x-axis will be shared amongst all subplots.
1033-
- If False, no axis will be shared amongst subplots.
1033+
- If False, no x-axis will be shared amongst subplots.
10341034
- If a string must be one of "row", "col", "all", or "none".
10351035
- "all" has the same effect as True.
10361036
- "none" has the same effect as False.
1037-
- If "row", each subplot row will share a x-axis.
1038-
- If "col", each subplot column will share a x-axis.
1037+
- If "row", each subplot row will share an x-axis.
1038+
- If "col", each subplot column will share an x-axis.
10391039
10401040
Note that if the x-axis is shared across rows (sharex=True or
10411041
sharex="col"), then the x tick labels will only be display on
@@ -1048,26 +1048,26 @@ def subplots(self, nrows=1, ncols=1, sharex=False, sharey=False,
10481048
- "all" has the same effect as True.
10491049
- "none" has the same effect as False.
10501050
- If "row", each subplot row will share a y-axis.
1051-
- If "col", each subplot column will share a y-axis
1051+
- If "col", each subplot column will share an y-axis
10521052
1053-
Note that if the y-axis is shared across columns (sharey=False or
1054-
sharey="col"), 1 then the y tick labels will only be displayed on
1053+
Note that if the y-axis is shared across columns (sharey=True or
1054+
sharey="col"), then the y tick labels will only be displayed on
10551055
subplots of the first column.
10561056
10571057
squeeze : bool, default: True
10581058
- If True, extra dimensions are squeezed out from the returned
10591059
axis object:
10601060
10611061
- if only one subplot is constructed (nrows=ncols=1), the
1062-
resulting single Axis object is returned as a scalar.
1063-
- for Nx1 or 1xN subplots, the returned object is a 1-d numpy
1064-
object array of Axis objects are returned as numpy 1-d
1062+
resulting single Axes object is returned as a scalar.
1063+
- for Nx1 or 1xN subplots, the returned object is a 1D numpy
1064+
object array of Axes objects are returned as numpy 1D
10651065
arrays.
1066-
- for NxM subplots with N>1 and M>1 are returned as a 2d
1066+
- for NxM, subplots with N>1 and M>1 are returned as a 2D
10671067
arrays.
10681068
1069-
- If False, no squeezing at all is done: the returned axis object
1070-
is always a 2-d array containing Axis instances, even if it ends
1069+
- If False, no squeezing at all is done: the returned Axes object
1070+
is always a 2D array containing Axes instances, even if it ends
10711071
up being 1x1.
10721072
10731073
subplot_kw : dict, default: {}

lib/matplotlib/pyplot.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,12 +1052,12 @@ def subplots(nrows=1, ncols=1, sharex=False, sharey=False, squeeze=True,
10521052
10531053
sharex : {"none", "all", "row", "col"} or bool, default: False
10541054
- If True, the x-axis will be shared amongst all subplots.
1055-
- If False, no axis will be shared amongst subplots.
1055+
- If False, no x-axis will be shared amongst subplots.
10561056
- If a string must be one of "row", "col", "all", or "none".
10571057
- "all" has the same effect as True.
10581058
- "none" has the same effect as False.
1059-
- If "row", each subplot row will share a x-axis.
1060-
- If "col", each subplot column will share a x-axis.
1059+
- If "row", each subplot row will share an x-axis.
1060+
- If "col", each subplot column will share an x-axis.
10611061
10621062
Note that if the x-axis is shared across rows (sharex=True or
10631063
sharex="col"), then the x tick labels will only be display on subplots
@@ -1070,24 +1070,24 @@ def subplots(nrows=1, ncols=1, sharex=False, sharey=False, squeeze=True,
10701070
- "all" has the same effect as True.
10711071
- "none" has the same effect as False.
10721072
- If "row", each subplot row will share a y-axis.
1073-
- If "col", each subplot column will share a y-axis
1073+
- If "col", each subplot column will share an y-axis
10741074
1075-
Note that if the y-axis is shared across columns (sharey=False or
1076-
sharey="col"), 1 then the y tick labels will only be displayed on
1075+
Note that if the y-axis is shared across columns (sharey=True or
1076+
sharey="col"), then the y tick labels will only be displayed on
10771077
subplots of the first column.
10781078
10791079
squeeze : bool, optional, default: True
1080-
- If True, extra dimensions are squeezed out from the returned axis
1080+
- If True, extra dimensions are squeezed out from the returned Axes
10811081
object:
10821082
10831083
- if only one subplot is constructed (nrows=ncols=1), the
1084-
resulting single Axis object is returned as a scalar.
1085-
- for Nx1 or 1xN subplots, the returned object is a 1-d numpy
1086-
object array of Axis objects are returned as numpy 1-d arrays.
1087-
- for NxM subplots with N>1 and M>1 are returned as a 2d arrays.
1084+
resulting single Axes object is returned as a scalar.
1085+
- for Nx1 or 1xN subplots, the returned object is a 1D numpy
1086+
object array of Axes objects are returned as numpy 1D arrays.
1087+
- for NxM, subplots with N>1 and M>1 are returned as a 2D arrays.
10881088
1089-
- If False, no squeezing at all is done: the returned axis object is
1090-
always a 2-d array containing Axis instances, even if it ends up
1089+
- If False, no squeezing at all is done: the returned Axes object is
1090+
always a 2D array containing Axes instances, even if it ends up
10911091
being 1x1.
10921092
10931093
subplot_kw : dict, optional

0 commit comments

Comments
 (0)