Skip to content

Commit 71c9f09

Browse files
authored
Merge pull request matplotlib#19649 from timhoffm/globals
Use globals() instead of locals() for adding colormaps as names to cm module
2 parents c15c585 + 9e65b2f commit 71c9f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/cm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def _warn_deprecated(self):
9292

9393

9494
_cmap_registry = _gen_cmap_registry()
95-
locals().update(_cmap_registry)
95+
globals().update(_cmap_registry)
9696
# This is no longer considered public API
9797
cmap_d = _DeprecatedCmapDictWrapper(_cmap_registry)
9898
__builtin_cmaps = tuple(_cmap_registry)

0 commit comments

Comments
 (0)