Skip to content

Commit 04d1b17

Browse files
authored
Merge pull request #13167 from gwin-zegal/typos_subplot
Typos on subplot comments and example
2 parents c8933e0 + 2a65942 commit 04d1b17

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

doc/api/prev_api_changes/api_changes_2.0.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ call the function with ::
168168
where "ax" is an ``Axes3d`` object created with something like ::
169169

170170
import mpl_toolkits.mplot3d.axes3d
171-
ax = plt.sublot(111, projection='3d')
171+
ax = plt.subplot(111, projection='3d')
172172

173173

174174
Stale figure behavior

examples/subplots_axes_and_figures/subplot_toolbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Subplot Toolbar
44
===============
55
6-
Matplotlib has a toolbar available for adjusting suplot spacing.
6+
Matplotlib has a toolbar available for adjusting subplot spacing.
77
"""
88
import matplotlib.pyplot as plt
99
import numpy as np

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def inset_axes(self, bounds, *, transform=None, zorder=5,
424424
This example makes two inset axes, the first is in axes-relative
425425
coordinates, and the second in data-coordinates::
426426
427-
fig, ax = plt.suplots()
427+
fig, ax = plt.subplots()
428428
ax.plot(range(10))
429429
axin1 = ax.inset_axes([0.8, 0.1, 0.15, 0.15])
430430
axin2 = ax.inset_axes(

lib/matplotlib/figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ def add_subplot(self, *args, **kwargs):
12901290
*kwargs*) then it will simply make that subplot current and
12911291
return it. This behavior is deprecated. Meanwhile, if you do
12921292
not want this behavior (i.e., you want to force the creation of a
1293-
new suplot), you must use a unique set of args and kwargs. The axes
1293+
new subplot), you must use a unique set of args and kwargs. The axes
12941294
*label* attribute has been exposed for this purpose: if you want
12951295
two subplots that are otherwise identical to be added to the figure,
12961296
make sure you give them unique labels.

lib/matplotlib/gridspec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def get_subplot_params(self, figure=None, fig=None):
6363

6464
def new_subplotspec(self, loc, rowspan=1, colspan=1):
6565
"""
66-
create and return a SuplotSpec instance.
66+
create and return a SubplotSpec instance.
6767
"""
6868
loc1, loc2 = loc
6969
subplotspec = self[loc1:loc1+rowspan, loc2:loc2+colspan]
@@ -142,7 +142,7 @@ def get_grid_positions(self, fig, raw=False):
142142
return fig_bottoms, fig_tops, fig_lefts, fig_rights
143143

144144
def __getitem__(self, key):
145-
"""Create and return a SuplotSpec instance.
145+
"""Create and return a SubplotSpec instance.
146146
"""
147147
nrows, ncols = self.get_geometry()
148148

lib/matplotlib/pyplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ def subplot(*args, **kwargs):
984984
*kwargs*) then it will simply make that subplot current and
985985
return it. This behavior is deprecated. Meanwhile, if you do
986986
not want this behavior (i.e., you want to force the creation of a
987-
new suplot), you must use a unique set of args and kwargs. The axes
987+
new subplot), you must use a unique set of args and kwargs. The axes
988988
*label* attribute has been exposed for this purpose: if you want
989989
two subplots that are otherwise identical to be added to the figure,
990990
make sure you give them unique labels.

lib/matplotlib/tests/test_tightlayout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def test_tight_layout8():
154154

155155
@image_comparison(baseline_images=['tight_layout9'])
156156
def test_tight_layout9():
157-
# Test tight_layout for non-visible suplots
157+
# Test tight_layout for non-visible subplots
158158
# GH 8244
159159
f, axarr = plt.subplots(2, 2)
160160
axarr[1][1].set_visible(False)

tutorials/toolkits/axes_grid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@
259259
parasite axes modifies some of the axes behavior. For example, color
260260
cycle for plot lines are shared between host and parasites. Also, the
261261
legend command in host, creates a legend that includes lines in the
262-
parasite axes. To create a host axes, you may use *host_suplot* or
262+
parasite axes. To create a host axes, you may use *host_subplot* or
263263
*host_axes* command.
264264
265265

0 commit comments

Comments
 (0)