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

Appearance settings

Commit 21b129f

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

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎lib/matplotlib/style/core.py

Copy file name to clipboardExpand all lines: lib/matplotlib/style/core.py
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.