Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f66988e

Browse files
committed
Clarify note in get_cmap()
1 parent 447160e commit f66988e

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)