From 00d98fad8516bbc6fa2d5f32e083fbb88f25a6e5 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Thu, 25 Feb 2021 13:57:54 -0500 Subject: [PATCH] Backport PR #19567: DOC: fix typos --- doc/sphinxext/missing_references.py | 2 +- lib/matplotlib/axes/_axes.py | 2 +- tutorials/intermediate/autoscale.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/sphinxext/missing_references.py b/doc/sphinxext/missing_references.py index e918834842fc..6aa82a4dd17d 100644 --- a/doc/sphinxext/missing_references.py +++ b/doc/sphinxext/missing_references.py @@ -136,7 +136,7 @@ def _truncate_location(location): """ Cuts off anything after the first colon in location strings. - This allows for easy comparison even when line numbers chagne + This allows for easy comparison even when line numbers change (as they do regularly). """ return location.split(":", 1)[0] diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index da4ff6beb75e..08ff41f4066e 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -4908,7 +4908,7 @@ def reduce_C_function(C: array) -> float # make sure we have no zeros accum += 1 - # autoscale the norm with curren accum values if it hasn't + # autoscale the norm with current accum values if it hasn't # been set if norm is not None: if norm.vmin is None and norm.vmax is None: diff --git a/tutorials/intermediate/autoscale.py b/tutorials/intermediate/autoscale.py index bdbe37cbf2fe..64cc2e22f014 100644 --- a/tutorials/intermediate/autoscale.py +++ b/tutorials/intermediate/autoscale.py @@ -92,7 +92,7 @@ # with requested margins. # # While sticky edges don't increase the axis limits through extra margins, -# negative margins are still taken into accout. This can be seen in +# negative margins are still taken into account. This can be seen in # the reduced limits of the third image. # # Controlling autoscale