From f66988e77d1548d9992eab7bbf78c6560dfc6182 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Fri, 4 Feb 2022 23:38:31 +0100 Subject: [PATCH] Clarify note in get_cmap() --- lib/matplotlib/cm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/cm.py b/lib/matplotlib/cm.py index 1f44c2f1b805..e1ebf7c42136 100644 --- a/lib/matplotlib/cm.py +++ b/lib/matplotlib/cm.py @@ -265,9 +265,9 @@ def get_cmap(name=None, lut=None): Notes ----- - Currently, this returns the global colormap object, which is deprecated. - In Matplotlib 3.5, you will no longer be able to modify the global - colormaps in-place. + Currently, this returns the global colormap object. This is undesired + because users could accidentally modify the global colormap. + From Matplotlib 3.6 on, this will return a copy instead. Parameters ----------