Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3245d39

Browse files
authored
Merge pull request #23337 from anntzer/sb
Remove now inexistent "datapath" rcParam from style blacklist.
2 parents 71cb651 + 82d3037 commit 3245d39

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/matplotlib/style/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class __getattr__:
4040
STYLE_BLACKLIST = {
4141
'interactive', 'backend', 'webagg.port', 'webagg.address',
4242
'webagg.port_retries', 'webagg.open_in_browser', 'backend_fallback',
43-
'toolbar', 'timezone', 'datapath', 'figure.max_open_warning',
43+
'toolbar', 'timezone', 'figure.max_open_warning',
4444
'figure.raise_window', 'savefig.directory', 'tk.window_focus',
4545
'docstring.hardcopy', 'date.epoch'}
4646

lib/matplotlib/tests/test_style.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,7 @@ def test_deprecated_seaborn_styles():
184184
with pytest.warns(mpl._api.MatplotlibDeprecationWarning):
185185
mpl.style.use("seaborn-bright")
186186
assert mpl.rcParams == seaborn_bright
187+
188+
189+
def test_up_to_date_blacklist():
190+
assert mpl.style.core.STYLE_BLACKLIST <= {*mpl.rcsetup._validators}

0 commit comments

Comments
 (0)