From c86f15d389624af6965fec8313910e4c3ee8f12c Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Wed, 24 Mar 2021 20:28:39 -0400 Subject: [PATCH] Set colormap modification removal to 3.6. The deprecation would normally be removed 2 releases later (i.e., 3.5 for a 3.3 deprecation), but we need to extend it as we didn't fully determine the intermediate changes to make. --- lib/matplotlib/colors.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/colors.py b/lib/matplotlib/colors.py index 8f2744013202..698b406e758e 100644 --- a/lib/matplotlib/colors.py +++ b/lib/matplotlib/colors.py @@ -557,10 +557,12 @@ def _warn_if_global_cmap_modified(cmap): if getattr(cmap, '_global', False): _api.warn_deprecated( "3.3", + removal="3.6", message="You are modifying the state of a globally registered " - "colormap. In future versions, you will not be able to " - "modify a registered colormap in-place. To remove this " - "warning, you can make a copy of the colormap first. " + "colormap. This has been deprecated since %(since)s and " + "%(removal)s, you will not be able to modify a " + "registered colormap in-place. To remove this warning, " + "you can make a copy of the colormap first. " f'cmap = mpl.cm.get_cmap("{cmap.name}").copy()' )