Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit51b8ebc

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 parents411ee0a +841b43c commit51b8ebc

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
ifgetattr(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)

[8]ページ先頭

©2009-2025 Movatter.jp