Skip to content

Commit 9913c81

Browse files
authored
Merge pull request #22993 from matthewfeickert/sty/fix-typos-from-22298
STY: Fix typos in colormap
2 parents 7661d53 + 4ffe491 commit 9913c81

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)