Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 59b32af

Browse filesBrowse 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
Copy full SHA for 59b32af

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/cm.py

Copy file name to clipboardExpand all lines: lib/matplotlib/cm.py
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.