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

Commit38ba27e

Browse files
authored
Merge pull request#23741 from meeseeksmachine/auto-backport-of-pr-23674-on-v3.6.x
Backport PR#23674 on branch v3.6.x (Re-rename builtin seaborn styles to not include a dot.)
2 parents4c069c9 +6fe3897 commit38ba27e

20 files changed

+6
-6
lines changed

‎doc/api/next_api_changes/deprecations/22317-AL.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ seaborn styles renamed
33
Matplotlib currently ships many style files inspired from the seaborn
44
library ("seaborn", "seaborn-bright", "seaborn-colorblind", etc.) but they
55
have gone out of sync with the library itself since the release of seaborn
6-
0.9. To prevent confusion, the style files have been renamed "seaborn0.8",
7-
"seaborn0.8-bright", "seaborn0.8-colorblind", etc. Users are encouraged to
6+
0.9. To prevent confusion, the style files have been renamed "seaborn-v0_8",
7+
"seaborn-v0_8-bright", "seaborn-v0_8-colorblind", etc. Users are encouraged to
88
directly use seaborn to access the up-to-date styles.

‎lib/matplotlib/style/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ def fix_style(s):
135135
"3.6",message="The seaborn styles shipped by Matplotlib "
136136
"are deprecated since %(since)s, as they no longer "
137137
"correspond to the styles shipped by seaborn. However, "
138-
"they will remain available as 'seaborn0.8-<style>'. "
138+
"they will remain available as 'seaborn-v0_8-<style>'. "
139139
"Alternatively, directly use the seaborn API instead.")
140-
s=s.replace("seaborn","seaborn0.8")
140+
s=s.replace("seaborn","seaborn-v0_8")
141141
returns
142142

143143
forstyleinmap(fix_style,styles):

‎lib/matplotlib/tests/test_style.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def test_xkcd_cm():
178178

179179

180180
deftest_deprecated_seaborn_styles():
181-
withmpl.style.context("seaborn0.8-bright"):
181+
withmpl.style.context("seaborn-v0_8-bright"):
182182
seaborn_bright=mpl.rcParams.copy()
183183
assertmpl.rcParams!=seaborn_bright
184184
withpytest.warns(mpl._api.MatplotlibDeprecationWarning):

‎tutorials/colors/colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def demo(sty):
134134

135135

136136
demo('default')
137-
demo('seaborn0.8')
137+
demo('seaborn-v0_8')
138138

139139
###############################################################################
140140
# The first color ``'C0'`` is the title. Each plot uses the second and third

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp