Skip to content

Commit 4ffe491

Browse files
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.
1 parent 7661d53 commit 4ffe491

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/cm.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def register(self, cmap, *, name=None, force=False):
154154
raise ValueError("Re-registering the builtin cmap "
155155
f"{name!r} is not allowed.")
156156

157-
# Warn that we are updating an already exisiting colormap
157+
# Warn that we are updating an already existing colormap
158158
_api.warn_external(f"Overwriting the cmap {name!r} "
159159
"that was already in the registry.")
160160

@@ -235,7 +235,7 @@ def register_cmap(name=None, cmap=None, *, override_builtin=False):
235235
except AttributeError as err:
236236
raise ValueError("Arguments must include a name or a "
237237
"Colormap") from err
238-
# override_builtin is allowed here for backward compatbility
238+
# override_builtin is allowed here for backward compatibility
239239
# this is just a shim to enable that to work privately in
240240
# the global ColormapRegistry
241241
_colormaps._allow_override_builtin = override_builtin

0 commit comments

Comments
 (0)