Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 841b43c

Browse files
anntzermeeseeksmachine
authored andcommitted
Backport PR #19766: Set colormap modification removal to 3.6.
1 parent 411ee0a commit 841b43c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

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)