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 1937d0b + c86f15d commit 214def5Copy full SHA for 214def5
lib/matplotlib/colors.py
@@ -557,10 +557,12 @@ def _warn_if_global_cmap_modified(cmap):
557
if getattr(cmap, '_global', False):
558
_api.warn_deprecated(
559
"3.3",
560
+ removal="3.6",
561
message="You are modifying the state of a globally registered "
- "colormap. In future versions, you will not be able to "
562
- "modify a registered colormap in-place. To remove this "
563
- "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 "
564
+ "registered colormap in-place. To remove this warning, "
565
+ "you can make a copy of the colormap first. "
566
f'cmap = mpl.cm.get_cmap("{cmap.name}").copy()'
567
)
568
0 commit comments