FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Set colormap modification removal to 3.6. by QuLogic · Pull Request #19766 · matplotlib/matplotlib · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
8 changes: 5 additions & 3 deletions lib/matplotlib/colors.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -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()'
)

Expand Down

Back | FazBrowse Home | New Git URL