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

Skip to content

Commit dcba27e

Browse files
authored
Merge pull request #13356 from anntzer/spell
More spelling fixes.
2 parents f92bd01 + e202ee5 commit dcba27e

27 files changed

+38
-45
lines changed

doc/sphinxext/gallery_order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from sphinx_gallery.sorting import ExplicitOrder
88

9-
# Gallery sections shall be diplayed in the following order.
9+
# Gallery sections shall be displayed in the following order.
1010
# Non-matching sections are appended.
1111
explicit_order_folders = [
1212
'../examples/lines_bars_and_markers',

examples/images_contours_and_fields/image_masked.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
# range to which the regular palette color scale is applied.
4343
# Anything above that range is colored based on palette.set_over, etc.
4444

45-
# set up the Axes objets
45+
# set up the Axes objects
4646
fig, (ax1, ax2) = plt.subplots(nrows=2, figsize=(6, 5.4))
4747

4848
# plot using 'continuous' color map

examples/ticks_and_spines/date_concise_formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
# ticks that are "zeros". These are tick values that are either the first of
9898
# the year, month, or day of month, or the zeroth hour, minute, or second.
9999
# These are usually the same as the format of
100-
# the ticks a level above. For example if the axis limts mean the ticks are
100+
# the ticks a level above. For example if the axis limits mean the ticks are
101101
# mostly days, then we label 1 Mar 2005 simply with a "Mar". If the axis
102102
# limits are mostly hours, we label Feb 4 00:00 as simply "Feb-4".
103103
#

lib/matplotlib/artist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ def sticky_edges(self):
10021002
10031003
When performing autoscaling, if a data limit coincides with a value in
10041004
the corresponding sticky_edges list, then no margin will be added--the
1005-
view limit "sticks" to the edge. A typical usecase is histograms,
1005+
view limit "sticks" to the edge. A typical use case is histograms,
10061006
where one usually expects no margin on the bottom edge (0) of the
10071007
histogram.
10081008

lib/matplotlib/axes/_axes.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4464,7 +4464,7 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
44644464
44654465
marginals : bool, optional, default is *False*
44664466
if marginals is *True*, plot the marginal density as
4467-
colormapped rectagles along the bottom of the x-axis and
4467+
colormapped rectangles along the bottom of the x-axis and
44684468
left of the y-axis
44694469
44704470
extent : scalar, optional, default is *None*
@@ -5064,7 +5064,7 @@ def fill_between(self, x, y1, y2=0, where=None, interpolate=False,
50645064
position remain unfilled due to the adjacent *False* values.
50655065
50665066
interpolate : bool, optional
5067-
This option is only relvant if *where* is used and the two curves
5067+
This option is only relevant if *where* is used and the two curves
50685068
are crossing each other.
50695069
50705070
Semantically, *where* is often used for *y1* > *y2* or similar.
@@ -5246,7 +5246,7 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
52465246
position remain unfilled due to the adjacent *False* values.
52475247
52485248
interpolate : bool, optional
5249-
This option is only relvant if *where* is used and the two curves
5249+
This option is only relevant if *where* is used and the two curves
52505250
are crossing each other.
52515251
52525252
Semantically, *where* is often used for *x1* > *x2* or similar.
@@ -5257,7 +5257,7 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
52575257
simply clipped.
52585258
52595259
Setting *interpolate* to *True* will calculate the actual
5260-
interscection point and extend the filled region up to this point.
5260+
intersection point and extend the filled region up to this point.
52615261
52625262
step : {'pre', 'post', 'mid'}, optional
52635263
Define *step* if the filling should be a step function,
@@ -6139,7 +6139,7 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
61396139
61406140
X, Y : tuple or array-like, default: ``(0, N)``, ``(0, M)``
61416141
*X* and *Y* are used to specify the coordinates of the
6142-
quadilaterals. There are different ways to do this:
6142+
quadrilaterals. There are different ways to do this:
61436143
61446144
- Use tuples ``X=(xmin, xmax)`` and ``Y=(ymin, ymax)`` to define
61456145
a *uniform rectangular grid*.

lib/matplotlib/backends/backend_pgf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class LatexManager:
214214
"""
215215
The LatexManager opens an instance of the LaTeX application for
216216
determining the metrics of text elements. The LaTeX environment can be
217-
modified by setting fonts and/or a custem preamble in the rc parameters.
217+
modified by setting fonts and/or a custom preamble in the rc parameters.
218218
"""
219219
_unclean_instances = weakref.WeakSet()
220220

lib/matplotlib/backends/backend_wx.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class RendererWx(RendererBase):
147147
'renderer' instance used by many classes in the hierarchy.
148148
"""
149149
# In wxPython, drawing is performed on a wxDC instance, which will
150-
# generally be mapped to the client aread of the window displaying
150+
# generally be mapped to the client area of the window displaying
151151
# the plot. Under wxPython, the wxDC instance has a wx.Pen which
152152
# describes the colour and weight of any lines drawn, and a wxBrush
153153
# which describes the fill colour of any closed polygon.
@@ -429,18 +429,13 @@ def __init__(self, bitmap, renderer):
429429
self.renderer = renderer
430430

431431
def select(self):
432-
"""
433-
Select the current bitmap into this wxDC instance
434-
"""
435-
432+
"""Select the current bitmap into this wxDC instance."""
436433
if sys.platform == 'win32':
437434
self.dc.SelectObject(self.bitmap)
438435
self.IsSelected = True
439436

440437
def unselect(self):
441-
"""
442-
Select a Null bitmasp into this wxDC instance
443-
"""
438+
"""Select a Null bitmap into this wxDC instance."""
444439
if sys.platform == 'win32':
445440
self.dc.SelectObject(wx.NullBitmap)
446441
self.IsSelected = False

lib/matplotlib/bezier.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def find_bezier_t_intersecting_with_closedpath(
101101
bounds the intersecting points with a provided closed
102102
path(*inside_closedpath*). Search starts from *t0* and *t1* and it
103103
uses a simple bisecting algorithm therefore one of the end point
104-
must be inside the path while the orther doesn't. The search stop
104+
must be inside the path while the other doesn't. The search stop
105105
when |t0-t1| gets smaller than the given tolerance.
106106
value for
107107
@@ -307,8 +307,8 @@ def get_cos_sin(x0, y0, x1, y1):
307307
@cbook._rename_parameter("3.1", "tolerence", "tolerance")
308308
def check_if_parallel(dx1, dy1, dx2, dy2, tolerance=1.e-5):
309309
""" returns
310-
* 1 if two lines are parralel in same direction
311-
* -1 if two lines are parralel in opposite direction
310+
* 1 if two lines are parallel in same direction
311+
* -1 if two lines are parallel in opposite direction
312312
* 0 otherwise
313313
"""
314314
theta1 = np.arctan2(dx1, dy1)
@@ -368,7 +368,7 @@ def get_parallels(bezier2, width):
368368
# t2. Same with cm_right.
369369
if parallel_test != 0:
370370
# a special case for a straight line, i.e., angle between two
371-
# lines are smaller than some (arbitrtay) value.
371+
# lines are smaller than some (arbitrary) value.
372372
cmx_left, cmy_left = (
373373
0.5 * (c1x_left + c2x_left), 0.5 * (c1y_left + c2y_left)
374374
)

lib/matplotlib/cbook/deprecation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def wrapper(*args, **kwargs):
251251
' {message}'
252252
.format(since=since, message=message, old_doc=old_doc))
253253
if not old_doc:
254-
# This is to prevent a spurious 'unexected unindent' warning from
254+
# This is to prevent a spurious 'unexpected unindent' warning from
255255
# docutils when the original docstring was blank.
256256
new_doc += r'\ '
257257

lib/matplotlib/collections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The classes are not meant to be as flexible as their single element
77
counterparts (e.g., you may not be able to select all line styles) but
88
they are meant to be fast for common use cases (e.g., a large set of solid
9-
line segemnts)
9+
line segments).
1010
"""
1111

1212
import math

lib/matplotlib/colors.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1848,8 +1848,7 @@ def from_levels_and_colors(levels, colors, extend='neither'):
18481848
----------
18491849
levels : sequence of numbers
18501850
The quantization levels used to construct the :class:`BoundaryNorm`.
1851-
Values ``v`` are quantizized to level ``i`` if
1852-
``lev[i] <= v < lev[i+1]``.
1851+
Value ``v`` is quantized to level ``i`` if ``lev[i] <= v < lev[i+1]``.
18531852
colors : sequence of colors
18541853
The fill color to use for each level. If `extend` is "neither" there
18551854
must be ``n_level - 1`` colors. For an `extend` of "min" or "max" add

lib/matplotlib/legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ def _init_legend_box(self, handles, labels, markerfirst=True):
790790
# be given in the display coordinates.
791791

792792
# The transformation of each handle will be automatically set
793-
# to self.get_trasnform(). If the artist does not use its
793+
# to self.get_transform(). If the artist does not use its
794794
# default transform (e.g., Collections), you need to
795795
# manually set their transform to the self.get_transform().
796796
legend_handler_map = self.get_legend_handler_map()

lib/matplotlib/mathtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3023,7 +3023,7 @@ def subsuper(self, s, loc, toks):
30233023
return [result]
30243024

30253025
# We remove kerning on the last character for consistency (otherwise
3026-
# it will compute kerning based on non-shrinked characters and may put
3026+
# it will compute kerning based on non-shrunk characters and may put
30273027
# them too close together when superscripted)
30283028
# We change the width of the last character to match the advance to
30293029
# consider some fonts with weird metrics: e.g. stix's f has a width of

lib/matplotlib/offsetbox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ def get_extent(self, renderer):
932932
bboxes = [c.get_window_extent(renderer) for c in self._children]
933933
ub = mtransforms.Bbox.union(bboxes)
934934

935-
# adjust ref_offset_tansform
935+
# adjust ref_offset_transform
936936
self.ref_offset_transform.translate(-ub.x0, -ub.y0)
937937

938938
# restor offset transform

lib/matplotlib/pylab.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,14 @@
176176
177177
bartlett - M-point Bartlett window
178178
blackman - M-point Blackman window
179-
cohere - the coherence using average periodiogram
180-
csd - the cross spectral density using average periodiogram
179+
cohere - the coherence using average periodogram
180+
csd - the cross spectral density using average periodogram
181181
fft - the fast Fourier transform of vector x
182182
hamming - M-point Hamming window
183183
hanning - M-point Hanning window
184184
hist - compute the histogram of x
185185
kaiser - M length Kaiser window
186-
psd - the power spectral density using average periodiogram
186+
psd - the power spectral density using average periodogram
187187
sinc - the sinc function of array x
188188
189189
_Dates

lib/matplotlib/testing/jpl_units/Epoch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def range(start, stop, step):
213213
- step Step to use.
214214
215215
= RETURN VALUE
216-
- Returns a list contianing the requested Epoch values.
216+
- Returns a list containing the requested Epoch values.
217217
"""
218218
elems = []
219219

lib/matplotlib/testing/jpl_units/UnitDbl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def range(start, stop, step=None):
217217
value 1 w/ the units of the start is used.
218218
219219
= RETURN VALUE
220-
- Returns a list contianing the requested UnitDbl values.
220+
- Returns a list containing the requested UnitDbl values.
221221
"""
222222
if step is None:
223223
step = UnitDbl(1, start._units)

lib/matplotlib/tests/test_axes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ def test_formatter_ticker():
132132
ax.autoscale_view()
133133

134134

135-
@image_comparison(baseline_images=["twin_axis_locaters_formatters"])
136-
def test_twin_axis_locaters_formatters():
135+
@image_comparison(baseline_images=["twin_axis_locators_formatters"])
136+
def test_twin_axis_locators_formatters():
137137
vals = np.linspace(0, 1, num=5, endpoint=True)
138138
locs = np.sin(np.pi * vals / 2.0)
139139

@@ -616,7 +616,7 @@ def test_shaped_data():
616616

617617

618618
def test_structured_data():
619-
# support for stuctured data
619+
# support for structured data
620620
pts = np.array([(1, 1), (2, 2)], dtype=[("ones", float), ("twos", float)])
621621

622622
# this should not read second name as a format and raise ValueError

lib/matplotlib/tests/test_legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def test_linecollection_scaled_dashes():
470470

471471

472472
def test_handler_numpoints():
473-
'''test legend handler with numponts less than or equal to 1'''
473+
"""Test legend handler with numpoints <= 1."""
474474
# related to #6921 and PR #8478
475475
fig, ax = plt.subplots()
476476
ax.plot(range(5), label='test')

lib/matplotlib/tests/test_rcparams.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_rcparams():
3939
assert mpl.rcParams['text.usetex'] == (not usetex)
4040
assert mpl.rcParams['text.usetex'] == usetex
4141

42-
# test context given filename (mpl.rc sets linewdith to 33)
42+
# test context given filename (mpl.rc sets linewidth to 33)
4343
with mpl.rc_context(fname=fname):
4444
assert mpl.rcParams['lines.linewidth'] == 33
4545
assert mpl.rcParams['lines.linewidth'] == linewidth

lib/matplotlib/textpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def __init__(self, xy, s, size=None, prop=None,
451451

452452
if args or kwargs:
453453
cbook.warn_deprecated(
454-
"3.1", message="Additional agruments to TextPath used to be "
454+
"3.1", message="Additional arguments to TextPath used to be "
455455
"ignored, but will trigger a TypeError %(removal)s.")
456456

457457
if prop is None:

lib/matplotlib/ticker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1441,7 +1441,7 @@ def tick_values(self, vmin, vmax):
14411441

14421442
def set_params(self, **kwargs):
14431443
"""
1444-
Do nothing, and rase a warning. Any locator class not supporting the
1444+
Do nothing, and raise a warning. Any locator class not supporting the
14451445
set_params() function will call this.
14461446
"""
14471447
cbook._warn_external(

lib/matplotlib/widgets.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2188,8 +2188,7 @@ def _release(self, event):
21882188
if self.spancoords == 'data':
21892189
xmin, ymin = self.eventpress.xdata, self.eventpress.ydata
21902190
xmax, ymax = self.eventrelease.xdata, self.eventrelease.ydata
2191-
# calcultate dimensions of box or line get values in the right
2192-
# order
2191+
# calculate dimensions of box or line get values in the right order
21932192
elif self.spancoords == 'pixels':
21942193
xmin, ymin = self.eventpress.x, self.eventpress.y
21952194
xmax, ymax = self.eventrelease.x, self.eventrelease.y

tutorials/toolkits/axisartist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@
247247
248248
ax.axis["bottom"].major_ticklabels.set_visible(False)
249249
250-
AxisAritst provides a helper method to control the visibility of ticks,
250+
AxisArtist provides a helper method to control the visibility of ticks,
251251
ticklabels, and label. To make ticklabel invisible, ::
252252
253253
ax.axis["bottom"].toggle(ticklabels=False)
@@ -415,7 +415,7 @@
415415
Demo Axis Direction
416416
417417
The axis_direction can be adjusted in the AxisArtist level, or in the
418-
level of its child arists, i.e., ticks, ticklabels, and axis-label. ::
418+
level of its child artists, i.e., ticks, ticklabels, and axis-label. ::
419419
420420
ax1.axis["left"].set_axis_direction("top")
421421

0 commit comments

Comments
 (0)