10000 Backport PR #22396: Clarify note in get_cmap() · meeseeksmachine/matplotlib@d515b10 · GitHub
[go: up one dir, main page]

Skip to content

Commit d515b10

Browse files
QuLogicmeeseeksmachine
authored andcommitted
Backport PR matplotlib#22396: Clarify note in get_cmap()
1 parent 39a3802 commit d515b10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/cm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ def get_cmap(name=None, lut=None):
265265
266266
Notes
267267
-----
268-
Currently, this returns the global colormap object, which is deprecated.
269-
In Matplotlib 3.5, you will no longer be able to modify the global
270-
colormaps in-place.
268+
Currently, this returns the global colormap object. This is undesired
269+
because users could accidentally modify the global colormap.
270+
From Matplotlib 3.6 on, this will return a copy instead.
271271
272272
Parameters
273273
----------

0 commit comments

Comments
 (0)
0