8000 Merge pull request #19652 from meeseeksmachine/auto-backport-of-pr-19… · matplotlib/matplotlib@59b32af · GitHub
[go: up one dir, main page]

Skip to content

Commit 59b32af

Browse files
authored
Merge pull request #19652 from meeseeksmachine/auto-backport-of-pr-19649-on-v3.4.x
Backport PR #19649 on branch v3.4.x (Use globals() instead of locals() for adding colormaps as names to cm module)
2 parents b1efe69 + 9e11b92 commit 59b32af

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)
0