Skip to content

Commit 5502dee

Browse files
authored
Merge pull request #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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy