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

Skip to content

Fix a couple of typoes. #11979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/matplotlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',),
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/matplotlib/artist.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions lib/matplotlib/contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/gridspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down