From fe9618dd5c985e878ff1218d17bf207f5d58cc23 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Wed, 18 Dec 2024 21:29:36 +0100 Subject: [PATCH] DOC: fix typos Closes #29313. --- doc/api/next_api_changes/removals/20866-JKS.rst | 2 +- doc/api/prev_api_changes/api_changes_3.1.0.rst | 2 +- lib/matplotlib/axes/_base.py | 2 +- lib/matplotlib/sphinxext/plot_directive.py | 2 +- lib/matplotlib/tests/test_colorbar.py | 2 +- lib/matplotlib/tests/test_widgets.py | 2 +- pyproject.toml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/api/next_api_changes/removals/20866-JKS.rst b/doc/api/next_api_changes/removals/20866-JKS.rst index 14dbe039a4cf..45878dc38e16 100644 --- a/doc/api/next_api_changes/removals/20866-JKS.rst +++ b/doc/api/next_api_changes/removals/20866-JKS.rst @@ -2,6 +2,6 @@ ttconv removed ~~~~~~~~~~~~~~ The ``matplotlib._ttconv`` extension has been removed. Most of its -functionaliy was already replaced by other code, and the only thing left +functionality was already replaced by other code, and the only thing left was embedding TTF fonts in PostScript in Type 42 format. This is now done in the PS backend using the FontTools library. diff --git a/doc/api/prev_api_changes/api_changes_3.1.0.rst b/doc/api/prev_api_changes/api_changes_3.1.0.rst index 365476f54e3c..d5b2a1369cf1 100644 --- a/doc/api/prev_api_changes/api_changes_3.1.0.rst +++ b/doc/api/prev_api_changes/api_changes_3.1.0.rst @@ -533,7 +533,7 @@ The following miscellaneous API elements have been removed logger = logging.getLogger('matplotlib') logger.setLevel(logging.INFO) # configure log handling: Either include it into your ``logging`` hierarchy, - # e.g. by configuring a root looger using ``logging.basicConfig()``, + # e.g. by configuring a root logger using ``logging.basicConfig()``, # or add a standalone handler to the matplotlib logger: logger.addHandler(logging.StreamHandler()) diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index 9fc05f2932fd..88fb7a54025f 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -1068,7 +1068,7 @@ def get_yaxis_text2_transform(self, pad_points): Returns ------- transform : Transform - The transform used for drawing secondart y-axis labels, which will + The transform used for drawing secondary y-axis labels, which will add *pad_points* of padding (in points) between the axis and the label. The x-direction is in axis coordinates and the y-direction is in data coordinates diff --git a/lib/matplotlib/sphinxext/plot_directive.py b/lib/matplotlib/sphinxext/plot_directive.py index 65b25fb913a5..a7117ba2cddc 100644 --- a/lib/matplotlib/sphinxext/plot_directive.py +++ b/lib/matplotlib/sphinxext/plot_directive.py @@ -32,7 +32,7 @@ import matplotlib.pyplot as plt plt.plot([1, 2, 3], [4, 5, 6]) - plt.title("A plotting exammple") + plt.title("A plotting example") 3. Using **doctest** syntax:: diff --git a/lib/matplotlib/tests/test_colorbar.py b/lib/matplotlib/tests/test_colorbar.py index 24eeab689424..9abb240d2b4d 100644 --- a/lib/matplotlib/tests/test_colorbar.py +++ b/lib/matplotlib/tests/test_colorbar.py @@ -1208,7 +1208,7 @@ def test_colorbar_errors(kwargs, error, message): fig.colorbar(im, **kwargs) -def test_colorbar_axes_parmeters(): +def test_colorbar_axes_parameters(): fig, ax = plt.subplots(2) im = ax[0].imshow([[0, 1], [2, 3]]) # colorbar should accept any form of axes sequence: diff --git a/lib/matplotlib/tests/test_widgets.py b/lib/matplotlib/tests/test_widgets.py index 585d846944e8..186c287e10f4 100644 --- a/lib/matplotlib/tests/test_widgets.py +++ b/lib/matplotlib/tests/test_widgets.py @@ -1599,7 +1599,7 @@ def test_polygon_selector_redraw(ax, draw_bounding_box): for (etype, event_args) in event_sequence: do_event(tool, etype, **event_args) # After removing two verts, only one remains, and the - # selector should be automatically resete + # selector should be automatically reset assert tool.verts == verts[0:2] diff --git a/pyproject.toml b/pyproject.toml index 832d76308e0b..a83f7ed3ca9f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ dev = [ "setuptools_scm>=7", # Not required by us but setuptools_scm without a version, cso _if_ # installed, then setuptools_scm 8 requires at least this version. - # Unfortunately, we can't do a sort of minimum-if-instaled dependency, so + # Unfortunately, we can't do a sort of minimum-if-installed dependency, so # we need to keep this for now until setuptools_scm _fully_ drops # setuptools. "setuptools>=64",