Skip to content

Commit 1504c4d

Browse files
committed
DOC: fix various typos
1 parent d2e5124 commit 1504c4d

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Removal of deprecated methods and properties in ``lines`` and ``patches``
22
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33

4-
The deperecated properties ``validCap`` and ``validJoin`` have been removed
4+
The deprecated properties ``validCap`` and ``validJoin`` have been removed
55
from `~.Line2D` and `~.Patch` as the validation is centralized in ``rcsetup``.
66
The deprecated methods ``get_dpi_cor`` and ``set_dpi_cor`` have been removed
77
from `~.FancyArrowPatch` as the parameter ``dpi_cor`` is removed.

doc/users/next_whats_new/list_font_names.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
List of available font names
22
------------------------------
33

4-
The list of available fonts are now easily accesible. Get a list of the
4+
The list of available fonts are now easily accessible. Get a list of the
55
available font names in matplotlib with:
66

77
.. code-block:: python

lib/matplotlib/axes/_base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ class ArtistList(MutableSequence):
13351335
tuples. Use as if this is a tuple already.
13361336
13371337
This class exists only for the transition period to warn on the
1338-
deprecated modifcation of artist lists.
1338+
deprecated modification of artist lists.
13391339
"""
13401340
def __init__(self, axes, prop_name, add_name,
13411341
valid_types=None, invalid_types=None):
@@ -2395,7 +2395,7 @@ def _update_patch_limits(self, patch):
23952395
return
23962396
p = patch.get_path()
23972397
# Get all vertices on the path
2398-
# Loop through each sement to get extrema for Bezier curve sections
2398+
# Loop through each segment to get extrema for Bezier curve sections
23992399
vertices = []
24002400
for curve, code in p.iter_bezier():
24012401
# Get distance along the curve of any extrema

lib/matplotlib/collections.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ def _bcast_lwls(linewidths, dashes):
690690
dashes = list(dashes) * (l_lw // gcd)
691691
linewidths = list(linewidths) * (l_dashes // gcd)
692692

693-
# scale the dash patters
693+
# scale the dash patterns
694694
dashes = [mlines._scale_dashes(o, d, lw)
695695
for (o, d), lw in zip(dashes, linewidths)]
696696

lib/matplotlib/figure.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2320,7 +2320,7 @@ def _check_layout_engines_compat(self, old, new):
23202320
# figure...
23212321
for ax in self.axes:
23222322
if hasattr(ax, '_colorbar'):
2323-
# colorbars list themselvs as a colorbar.
2323+
# colorbars list themselves as a colorbar.
23242324
return False
23252325
return True
23262326

lib/matplotlib/layout_engine.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def execute(self, fig):
9797
"""
9898
Execute the layout on the figure given by *fig*.
9999
"""
100-
# subclasses must impliment this.
100+
# subclasses must implement this.
101101
raise NotImplementedError
102102

103103

lib/matplotlib/tests/test_constrainedlayout.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def test_identical_subgridspec():
131131
axb += [fig.add_subplot(GSB[i])]
132132

133133
fig.draw_without_rendering()
134-
# chech first row above second
134+
# check first row above second
135135
assert axa[0].get_position().y0 > axb[0].get_position().y1
136136

137137

lib/matplotlib/tests/test_widgets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def onselect(epress, erelease):
9494
assert tool._selection_completed
9595
assert ax._n_onselect == 1
9696

97-
# Too small to create a selector. Should clear exising selector, and
97+
# Too small to create a selector. Should clear existing selector, and
9898
# trigger onselect because there was a pre-exisiting selector
9999
click_and_drag(tool, start=(x0, y0), end=(x1, y1))
100100
assert not tool._selection_completed

lib/matplotlib/widgets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3274,7 +3274,7 @@ def corners(self):
32743274
@property
32753275
def edge_centers(self):
32763276
"""
3277-
Midpoint of rectangle edges in data coordiantes from left,
3277+
Midpoint of rectangle edges in data coordinates from left,
32783278
moving anti-clockwise.
32793279
"""
32803280
x0, y0, width, height = self._rect_bbox

tutorials/introductory/quick_start.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -570,5 +570,5 @@ def my_plotter(ax, data1, data2, param_dict):
570570
# ============
571571
#
572572
# For more plot types see :doc:`Plot types </plot_types/index>` and the
573-
# :doc:`API reference </api/index>`, in particlar the
573+
# :doc:`API reference </api/index>`, in particular the
574574
# :doc:`Axes API </api/axes_api>`.

0 commit comments

Comments
 (0)