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

Skip to content

Commit 21b129f

Browse files
committed
Fix #5777. Don't warn when applying default style
1 parent 0abca30 commit 21b129f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/matplotlib/style/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ def use(style):
9898
if not cbook.is_string_like(style):
9999
_apply_style(style)
100100
elif style == 'default':
101-
_apply_style(rcParamsDefault)
101+
with warnings.catch_warnings(record=True):
102+
_apply_style(rcParamsDefault)
102103
elif style in library:
103104
_apply_style(library[style])
104105
else:

0 commit comments

Comments
 (0)