Skip to content

Commit e202ee5

Browse files
committed
More spelling fixes.
1 parent 8d62769 commit e202ee5

File tree

27 files changed

+38
-45
lines changed

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

0 commit comments

Comments
 (0)