Skip to content

Commit 5e78df9

Browse files
committed
Source typos
along with misc. source typos. Found via `codespell -q 3 -I ../matplotlib-whitelist.txt`
1 parent 254cdac commit 5e78df9

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

doc/devel/MEP/MEP28.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -254,13 +254,13 @@ This MEP can be divided into a few loosely coupled components:
254254
With this approach, #2 depends and #1, and #4 depends on #3.
255255

256256
There are two possible approaches to #2. The first and most direct would
257-
be to mirror the new ``transform_in`` and ``tranform_out`` parameters of
257+
be to mirror the new ``transform_in`` and ``transform_out`` parameters of
258258
``cbook.boxplot_stats`` in ``Axes.boxplot`` and pass them directly.
259259

260260
The second approach would be to add ``statfxn`` and ``statfxn_args``
261261
parameters to ``Axes.boxplot``. Under this implementation, the default
262262
value of ``statfxn`` would be ``cbook.boxplot_stats``, but users could
263-
pass their own function. Then ``transform_in`` and ``tranform_out`` would
263+
pass their own function. Then ``transform_in`` and ``transform_out`` would
264264
then be passed as elements of the ``statfxn_args`` parameter.
265265

266266
.. code:: python

lib/matplotlib/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
to MATLAB®, a registered trademark of The MathWorks, Inc.
100100
101101
"""
102-
# NOTE: This file must remain Python 2 compatible for the forseeable future,
102+
# NOTE: This file must remain Python 2 compatible for the foreseeable future,
103103
# to ensure that we error out properly for existing editable installs.
104104
from __future__ import absolute_import, division, print_function
105105

lib/matplotlib/axes/_axes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1797,7 +1797,7 @@ def acorr(self, x, **kwargs):
17971797
17981798
Returns
17991799
-------
1800-
lags : array (lenth ``2*maxlags+1``)
1800+
lags : array (length ``2*maxlags+1``)
18011801
lag vector.
18021802
c : array (length ``2*maxlags+1``)
18031803
auto correlation vector.
@@ -1859,7 +1859,7 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
18591859
18601860
Returns
18611861
-------
1862-
lags : array (lenth ``2*maxlags+1``)
1862+
lags : array (length ``2*maxlags+1``)
18631863
lag vector.
18641864
c : array (length ``2*maxlags+1``)
18651865
auto correlation vector.

lib/matplotlib/backends/qt_compat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
pyqt5=(QT_API_PYQT5, 5), pyside2=(QT_API_PYSIDE2, 5))
2424
# ETS is a dict of env variable to (QT_API, QT_MAJOR_VERSION)
2525
# If the ETS QT_API environment variable is set, use it, but only
26-
# if the varible if of the same major QT version. Note that
26+
# if the variable if of the same major QT version. Note that
2727
# ETS requires the version 2 of PyQt4, which is not the platform
2828
# default for Python 2.x.
2929

lib/matplotlib/backends/web_backend/jquery/js/jquery-1.11.3.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6708,7 +6708,7 @@ jQuery.extend({
67086708
value += "px";
67096709
}
67106710

6711-
// Fixes #8908, it can be done more correctly by specifing setters in cssHooks,
6711+
// Fixes #8908, it can be done more correctly by specifying setters in cssHooks,
67126712
// but it would mean to define eight (for every problematic property) identical functions
67136713
if ( !support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) {
67146714
style[ name ] = "inherit";

lib/matplotlib/lines.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def __init__(self, xdata, ydata,
317317
318318
%(Line2D)s
319319
320-
See :meth:`set_linestyle` for a decription of the line styles,
320+
See :meth:`set_linestyle` for a description of the line styles,
321321
:meth:`set_marker` for a description of the markers, and
322322
:meth:`set_drawstyle` for a description of the draw styles.
323323

lib/matplotlib/pylab.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
cumsum - the cumulative sum along a dimension
132132
detrend - remove the mean or besdt fit line from an array
133133
diag - the k-th diagonal of matrix
134-
diff - the n-th differnce of an array
134+
diff - the n-th difference of an array
135135
eig - the eigenvalues and eigen vectors of v
136136
eye - a matrix where the k-th diagonal is ones, else zero
137137
find - return the indices where a condition is nonzero

lib/mpl_toolkits/axes_grid1/inset_locator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def connect_bbox(bbox1, bbox2, loc1, loc2=None):
254254
corner of *bbox2*.
255255
"""
256256
if isinstance(bbox1, Rectangle):
257-
transform = bbox1.get_transfrom()
257+
transform = bbox1.get_transform()
258258
bbox1 = Bbox.from_bounds(0, 0, 1, 1)
259259
bbox1 = TransformedBbox(bbox1, transform)
260260

lib/mpl_toolkits/axisartist/angle_helper.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ def __init__(self,
348348
lon_minmax = None,
349349
lat_minmax = (-90, 90)
350350
):
351-
#self.transfrom_xy = transform_xy
352-
#self.inv_transfrom_xy = inv_transform_xy
351+
#self.transform_xy = transform_xy
352+
#self.inv_transform_xy = inv_transform_xy
353353
self.nx, self.ny = nx, ny
354354
self.lon_cycle, self.lat_cycle = lon_cycle, lat_cycle
355355
self.lon_minmax = lon_minmax

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setup.cfg.template for more information.
44
"""
55

6-
# NOTE: This file must remain Python 2 compatible for the forseeable future,
6+
# NOTE: This file must remain Python 2 compatible for the foreseeable future,
77
# to ensure that we error out properly for people with outdated setuptools
88
# and/or pip.
99
from __future__ import print_function, absolute_import

0 commit comments

Comments
 (0)