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

Skip to content

Commit d21c572

Browse files
authored
Merge pull request #11979 from Carreau/typoes
Fix a couple of typoes.
2 parents 98c172b + 463e009 commit d21c572

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

lib/matplotlib/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ def gen_candidates():
764764

765765
# rcParams deprecated; can use None to suppress warnings; remain actually
766766
# listed in the rcParams (not included in _all_deprecated).
767-
# Values are typles of (version,)
767+
# Values are tuples of (version,)
768768
_deprecated_remain_as_none = {
769769
'axes.hold': ('2.1',),
770770
'backend.qt4': ('2.2',),
@@ -1303,7 +1303,7 @@ def __fallback(self):
13031303
# If anything goes wrong, revert to the original rcs.
13041304
updated_backend = self._orig['backend']
13051305
dict.update(rcParams, self._orig)
1306-
# except for the backend. If the context block triggered resloving
1306+
# except for the backend. If the context block triggered resolving
13071307
# the auto backend resolution keep that value around
13081308
if self._orig['backend'] is rcsetup._auto_backend_sentinel:
13091309
rcParams['backend'] = updated_backend

lib/matplotlib/artist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ def get_alpha(self):
784784
return self._alpha
785785

786786
def get_visible(self):
787-
"""Return the visiblity."""
787+
"""Return the visibility."""
788788
return self._visible
789789

790790
def get_animated(self):
@@ -1600,7 +1600,7 @@ def kwdoc(artist):
16001600
-------
16011601
string
16021602
Returns a string with a list or rst table with the settable properties
1603-
of the *artist*. The formating depends on the value of
1603+
of the *artist*. The formatting depends on the value of
16041604
:rc:`docstring.hardcopy`. False result in a list that is intended for
16051605
easy reading as a docstring and True result in a rst table intended
16061606
for rendering the documentation with sphinx.

lib/matplotlib/contour.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def _get_label_text(self, x, y, rotation):
468468
def _get_label_clabeltext(self, x, y, rotation):
469469
# x, y, rotation is given in pixel coordinate. Convert them to
470470
# the data coordinate and create a label using ClabelText
471-
# class. This way, the roation of the clabel is along the
471+
# class. This way, the rotation of the clabel is along the
472472
# contour line always.
473473
transDataInv = self.ax.transData.inverted()
474474
dx, dy = transDataInv.transform_point((x, y))
@@ -506,7 +506,7 @@ def add_label_clabeltext(self, x, y, rotation, lev, cvalue):
506506
"""
507507
# x, y, rotation is given in pixel coordinate. Convert them to
508508
# the data coordinate and create a label using ClabelText
509-
# class. This way, the roation of the clabel is along the
509+
# class. This way, the rotation of the clabel is along the
510510
# contour line always.
511511

512512
t = self._get_label_clabeltext(x, y, rotation)
@@ -1784,7 +1784,7 @@ def _initialize_x_y(self, z):
17841784
Override axis units by specifying an instance of a
17851785
:class:`matplotlib.units.ConversionInterface`.
17861786
1787-
antialiased : bool, optinal
1787+
antialiased : bool, optional
17881788
Enable antialiasing, overriding the defaults. For
17891789
filled contours, the default is *True*. For line contours,
17901790
it is taken from :rc:`lines.antialiased`.

lib/matplotlib/gridspec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def __init__(self, gridspec, num1, num2=None):
423423
if gridspec._layoutbox is not None:
424424
glb = gridspec._layoutbox
425425
# So note that here we don't assign any layout yet,
426-
# just make the layoutbox that will conatin all items
426+
# just make the layoutbox that will contain all items
427427
# associated w/ this axis. This can include other axes like
428428
# a colorbar or a legend.
429429
self._layoutbox = layoutbox.LayoutBox(

0 commit comments

Comments
 (0)