Backport PR #23674 on branch v3.6.x (Re-rename builtin seaborn styles to not include a dot.) by meeseeksmachine · Pull Request #23741 · matplotlib/matplotlib · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/api/next_api_changes/deprecations/22317-AL.rst
4 changes: 2 additions & 2 deletions lib/matplotlib/style/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ def fix_style(s):
"3.6", message="The seaborn styles shipped by Matplotlib "
"are deprecated since %(since)s, as they no longer "
"correspond to the styles shipped by seaborn. However, "
"they will remain available as 'seaborn0.8-<style>'. "
"they will remain available as 'seaborn-v0_8-<style>'. "
"Alternatively, directly use the seaborn API instead.")
s = s.replace("seaborn", "seaborn0.8")
s = s.replace("seaborn", "seaborn-v0_8")
return s

for style in map(fix_style, styles):
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_style.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def test_xkcd_cm():


def test_deprecated_seaborn_styles():
with mpl.style.context("seaborn0.8-bright"):
with mpl.style.context("seaborn-v0_8-bright"):
seaborn_bright = mpl.rcParams.copy()
assert mpl.rcParams != seaborn_bright
with pytest.warns(mpl._api.MatplotlibDeprecationWarning):
Expand Down
2 changes: 1 addition & 1 deletion tutorials/colors/colors.py