@@ -1056,12 +1056,10 @@ def subplots(nrows=1, ncols=1, sharex=False, sharey=False, squeeze=True,
10561056 Controls sharing of properties among x (`sharex`) or y (`sharey`)
10571057 axes:
10581058
1059- - True or 'all': x- or y-axis will be shared among all
1060- subplots.
1061- - False or 'none': each subplot x- or y-axis will be
1062- independent.
1063- - 'row': each subplot row will share an x- or y-axis.
1064- - 'col': each subplot column will share an x- or y-axis.
1059+ - True or 'all': x- or y-axis will be shared among all subplots.
1060+ - False or 'none': each subplot x- or y-axis will be independent.
1061+ - 'row': each subplot row will share an x- or y-axis.
1062+ - 'col': each subplot column will share an x- or y-axis.
10651063
10661064 When subplots have a shared x-axis along a column, only the x tick
10671065 labels of the bottom subplot are created. Similarly, when subplots
@@ -1073,11 +1071,11 @@ def subplots(nrows=1, ncols=1, sharex=False, sharey=False, squeeze=True,
10731071 - If True, extra dimensions are squeezed out from the returned
10741072 array of `~matplotlib.axes.Axes`:
10751073
1076- - if only one subplot is constructed (nrows=ncols=1), the
1077- resulting single Axes object is returned as a scalar.
1078- - for Nx1 or 1xM subplots, the returned object is a 1D numpy
1079- object array of Axes objects.
1080- - for NxM, subplots with N>1 and M>1 are returned as a 2D array.
1074+ - if only one subplot is constructed (nrows=ncols=1), the
1075+ resulting single Axes object is returned as a scalar.
1076+ - for Nx1 or 1xM subplots, the returned object is a 1D numpy
1077+ object array of Axes objects.
1078+ - for NxM, subplots with N>1 and M>1 are returned as a 2D array.
10811079
10821080 - If False, no squeezing at all is done: the returned Axes object is
10831081 always a 2D array containing Axes instances, even if it ends up
@@ -1133,18 +1131,18 @@ def subplots(nrows=1, ncols=1, sharex=False, sharey=False, squeeze=True,
11331131 x = np.linspace(0, 2*np.pi, 400)
11341132 y = np.sin(x**2)
11351133
1136- # Creates just a figure and only one subplot
1134+ # Create just a figure and only one subplot
11371135 fig, ax = plt.subplots()
11381136 ax.plot(x, y)
11391137 ax.set_title('Simple plot')
11401138
1141- # Creates two subplots and unpacks the output array immediately
1139+ # Create two subplots and unpack the output array immediately
11421140 f, (ax1, ax2) = plt.subplots(1, 2, sharey=True)
11431141 ax1.plot(x, y)
11441142 ax1.set_title('Sharing Y axis')
11451143 ax2.scatter(x, y)
11461144
1147- # Creates four polar axes, and accesses them through the returned array
1145+ # Create four polar axes and access them through the returned array
11481146 fig, axs = plt.subplots(2, 2, subplot_kw=dict(polar=True))
11491147 axs[0, 0].plot(x, y)
11501148 axs[1, 1].scatter(x, y)
@@ -1161,7 +1159,7 @@ def subplots(nrows=1, ncols=1, sharex=False, sharey=False, squeeze=True,
11611159 # Note that this is the same as
11621160 plt.subplots(2, 2, sharex=True, sharey=True)
11631161
1164- # Creates figure number 10 with a single subplot
1162+ # Create figure number 10 with a single subplot
11651163 # and clears it if it already exists.
11661164 fig, ax = plt.subplots(num=10, clear=True)
11671165
0 commit comments