Skip to content

Commit 4988aaf

Browse files
authored
Merge pull request #22427 from meeseeksmachine/auto-backport-of-pr-22396-on-v3.5.x
Backport PR #22396 on branch v3.5.x (Clarify note in get_cmap())
2 parents 39a3802 + d515b10 commit 4988aaf

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)