Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 411ee0a + 841b43c commit 51b8ebcCopy full SHA for 51b8ebc
1 file changed
lib/matplotlib/colors.py
@@ -539,10 +539,12 @@ def _warn_if_global_cmap_modified(cmap):
539
if getattr(cmap, '_global', False):
540
_api.warn_deprecated(
541
"3.3",
542
+ removal="3.6",
543
message="You are modifying the state of a globally registered "
- "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. "
+ "colormap. This has been deprecated since %(since)s and "
+ "%(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. "
548
f'cmap = mpl.cm.get_cmap("{cmap.name}").copy()'
549
)
550
0 commit comments