Skip to content

Commit 5502dee

Browse files
authored
Merge pull request matplotlib#22396 from timhoffm/doc-cmap-copy
Clarify note in get_cmap()
2 parents 9467192 + f66988e commit 5502dee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/cm.py

+3-3
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)