From 4ffe491d514e89c4daab4f5630de84ac31d8bd12 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Fri, 6 May 2022 11:35:14 -0500 Subject: [PATCH] STY: Fix typos in colormap PR 22298 got merged with typos before PR 22777, which introduced the codespell pre-commit hook, which would have caught them. This simply fixes those typos. --- lib/matplotlib/cm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/cm.py b/lib/matplotlib/cm.py index 0d3aec035858..a958adc75afa 100644 --- a/lib/matplotlib/cm.py +++ b/lib/matplotlib/cm.py @@ -154,7 +154,7 @@ def register(self, cmap, *, name=None, force=False): raise ValueError("Re-registering the builtin cmap " f"{name!r} is not allowed.") - # Warn that we are updating an already exisiting colormap + # Warn that we are updating an already existing colormap _api.warn_external(f"Overwriting the cmap {name!r} " "that was already in the registry.") @@ -235,7 +235,7 @@ def register_cmap(name=None, cmap=None, *, override_builtin=False): except AttributeError as err: raise ValueError("Arguments must include a name or a " "Colormap") from err - # override_builtin is allowed here for backward compatbility + # override_builtin is allowed here for backward compatibility # this is just a shim to enable that to work privately in # the global ColormapRegistry _colormaps._allow_override_builtin = override_builtin