8000 DOC: fix various typos by luzpaz · Pull Request #22581 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

DOC: fix various typos #22581

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
Mar 1, 2022
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
2 changes: 1 addition & 1 deletion doc/api/next_api_changes/removals/22486-OG.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Removal of deprecated methods and properties in ``lines`` and ``patches``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The deperecated properties ``validCap`` and ``validJoin`` have been removed
The deprecated properties ``validCap`` and ``validJoin`` have been removed
from `~.Line2D` and `~.Patch` as the validation is centralized in ``rcsetup``.
The deprecated methods ``get_dpi_cor`` and ``set_dpi_cor`` have been removed
from `~.FancyArrowPatch` as the parameter ``dpi_cor`` is removed.
2 changes: 1 addition & 1 deletion doc/users/next_whats_new/list_font_names.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
List of available font names
------------------------------

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

.. code-block:: python
Expand Down
4 changes: 2 additions & 2 deletions lib/matplotlib/axes/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,7 @@ class ArtistList(MutableSequence):
tuples. Use as if this is a tuple already.

This class exists only for the transition period to warn on the
deprecated modifcation of artist lists.
deprecated modification of artist lists.
"""
def __init__(self, axes, prop_name, add_name,
valid_types=None, invalid_types=None):
Expand Down Expand Up @@ -2395,7 +2395,7 @@ def _update_patch_limits(self, patch):
return
p = patch.get_path()
# Get all vertices on the path
# Loop through each sement to get extrema for Bezier curve sections
# Loop through each segment to get extrema for Bezier curve sections
vertices = []
for curve, code in p.iter_bezier():
# Get distance along the curve of any extrema
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ def _bcast_lwls(linewidths, dashes):
dashes = list(dashes) * (l_lw // gcd)
linewidths = list(linewidths) * (l_dashes // gcd)

# scale the dash patters
# scale the dash patterns
dashes = [mlines._scale_dashes(o, d, lw)
for (o, d), lw in zip(dashes, linewidths)]

Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -2320,7 +2320,7 @@ def _check_layout_engines_compat(self, old, new):
# figure...
for ax in self.axes:
if hasattr(ax, '_colorbar'):
# colorbars list themselvs as a colorbar.
# colorbars list themselves as a colorbar.
return False
return True

Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/layout_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def execute(self, fig):
"""
Execute the layout on the figure given by *fig*.
"""
# subclasses must impliment this.
# subclasses must implement this.
raise NotImplementedError


Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_constrainedlayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def test_identical_subgridspec():
axb += [fig.add_subplot(GSB[i])]

fig.draw_without_rendering()
# chech first row above second
# check first row above second
assert axa[0].get_position().y0 > axb[0].get_position().y1


Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def onselect(epress, erelease):
assert tool._selection_completed
assert ax._n_onselect == 1

# Too small to create a selector. Should clear exising selector, and
# Too small to create a selector. Should clear existing selector, and
# trigger onselect because there was a pre-exisiting selector
click_and_drag(tool, start=(x0, y0), end=(x1, y1))
assert not tool._selection_completed
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/widgets.py
A3E2
Original file line number Diff line number Diff line change
Expand Up @@ -3274,7 +3274,7 @@ def corners(self):
@property
def edge_centers(self):
"""
Midpoint of rectangle edges in data coordiantes from left,
Midpoint of rectangle edges in data coordinates from left,
moving anti-clockwise.
"""
x0, y0, width, height = self._rect_bbox
Expand Down
2 changes: 1 addition & 1 deletion tutorials/introductory/quick_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,5 +570,5 @@ def my_plotter(ax, data1, data2, param_dict):
# ============
#
# For more plot types see :doc:`Plot types </plot_types/index>` and the
# :doc:`API reference </api/index>`, in particlar the
# :doc:`API reference </api/index>`, in particular the
# :doc:`Axes API </api/axes_api>`.
0