Skip to content

Commit 51b8ebc

Browse files
authored
Merge pull request #19767 from meeseeksmachine/auto-backport-of-pr-19766-on-v3.4.x
Backport PR #19766 on branch v3.4.x (Set colormap modification removal to 3.6.)
2 parents 411ee0a + 841b43c commit 51b8ebc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/matplotlib/colors.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -539,10 +539,12 @@ def _warn_if_global_cmap_modified(cmap):
539539
if getattr(cmap, '_global', False):
540540
_api.warn_deprecated(
541541
"3.3",
542+
removal="3.6",
542543
message="You are modifying the state of a globally registered "
543-
"colormap. In future versions, you will not be able to "
544-
"modify a registered colormap in-place. To remove this "
545-
"warning, you can make a copy of the colormap first. "
544+
"colormap. This has been deprecated since %(since)s and "
545+
"%(removal)s, you will not be able to modify a "
546+
"registered colormap in-place. To remove this warning, "
547+
"you can make a copy of the colormap first. "
546548
f'cmap = mpl.cm.get_cmap("{cmap.name}").copy()'
547549
)
548550

0 commit comments

Comments
 (0)