From 463e009b42546ac90c9aff6a72ec3fbd083d264c Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Wed, 29 Aug 2018 16:42:40 -0700 Subject: [PATCH] Fix a couple of typoes. --- lib/matplotlib/__init__.py | 4 ++-- lib/matplotlib/artist.py | 4 ++-- lib/matplotlib/contour.py | 6 +++--- lib/matplotlib/gridspec.py | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/matplotlib/__init__.py b/lib/matplotlib/__init__.py index 1e87a0a968d4..f68ce27a9470 100644 --- a/lib/matplotlib/__init__.py +++ b/lib/matplotlib/__init__.py @@ -764,7 +764,7 @@ def gen_candidates(): # rcParams deprecated; can use None to suppress warnings; remain actually # listed in the rcParams (not included in _all_deprecated). -# Values are typles of (version,) +# Values are tuples of (version,) _deprecated_remain_as_none = { 'axes.hold': ('2.1',), 'backend.qt4': ('2.2',), @@ -1303,7 +1303,7 @@ def __fallback(self): # If anything goes wrong, revert to the original rcs. updated_backend = self._orig['backend'] dict.update(rcParams, self._orig) - # except for the backend. If the context block triggered resloving + # except for the backend. If the context block triggered resolving # the auto backend resolution keep that value around if self._orig['backend'] is rcsetup._auto_backend_sentinel: rcParams['backend'] = updated_backend diff --git a/lib/matplotlib/artist.py b/lib/matplotlib/artist.py index 3a5fec61a878..abf330bc1b3c 100644 --- a/lib/matplotlib/artist.py +++ b/lib/matplotlib/artist.py @@ -784,7 +784,7 @@ def get_alpha(self): return self._alpha def get_visible(self): - """Return the visiblity.""" + """Return the visibility.""" return self._visible def get_animated(self): @@ -1600,7 +1600,7 @@ def kwdoc(artist): ------- string Returns a string with a list or rst table with the settable properties - of the *artist*. The formating depends on the value of + of the *artist*. The formatting depends on the value of :rc:`docstring.hardcopy`. False result in a list that is intended for easy reading as a docstring and True result in a rst table intended for rendering the documentation with sphinx. diff --git a/lib/matplotlib/contour.py b/lib/matplotlib/contour.py index 43bc3c116207..5354b315340c 100644 --- a/lib/matplotlib/contour.py +++ b/lib/matplotlib/contour.py @@ -468,7 +468,7 @@ def _get_label_text(self, x, y, rotation): def _get_label_clabeltext(self, x, y, rotation): # x, y, rotation is given in pixel coordinate. Convert them to # the data coordinate and create a label using ClabelText - # class. This way, the roation of the clabel is along the + # class. This way, the rotation of the clabel is along the # contour line always. transDataInv = self.ax.transData.inverted() dx, dy = transDataInv.transform_point((x, y)) @@ -506,7 +506,7 @@ def add_label_clabeltext(self, x, y, rotation, lev, cvalue): """ # x, y, rotation is given in pixel coordinate. Convert them to # the data coordinate and create a label using ClabelText - # class. This way, the roation of the clabel is along the + # class. This way, the rotation of the clabel is along the # contour line always. t = self._get_label_clabeltext(x, y, rotation) @@ -1784,7 +1784,7 @@ def _initialize_x_y(self, z): Override axis units by specifying an instance of a :class:`matplotlib.units.ConversionInterface`. - antialiased : bool, optinal + antialiased : bool, optional Enable antialiasing, overriding the defaults. For filled contours, the default is *True*. For line contours, it is taken from :rc:`lines.antialiased`. diff --git a/lib/matplotlib/gridspec.py b/lib/matplotlib/gridspec.py index 9afe44acd5d1..7e2bd1fae674 100644 --- a/lib/matplotlib/gridspec.py +++ b/lib/matplotlib/gridspec.py @@ -423,7 +423,7 @@ def __init__(self, gridspec, num1, num2=None): if gridspec._layoutbox is not None: glb = gridspec._layoutbox # So note that here we don't assign any layout yet, - # just make the layoutbox that will conatin all items + # just make the layoutbox that will contain all items # associated w/ this axis. This can include other axes like # a colorbar or a legend. self._layoutbox = layoutbox.LayoutBox(