Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fix #5777. Don't warn when applying default style #5778
Conversation
mdboom
added the
needs_review
label
Jan 1, 2016
mdboom
added this to the
next major release (2.0)
milestone
Jan 1, 2016
mdboom
referenced
this pull request
Jan 1, 2016
Closed
Using default style raises warnings about non style parameters #5777
|
The context manager is badly named it does not actually catch any warnings it just resets the warning filter when leaving the context. I think you have to do: with warnings.catch_warnings(record=True):
warnings.simplefilter("ignore", UserWarning)
_apply_style(rcParamsDefault) |
jenshnielsen
added the
needs_revision
label
Jan 1, 2016
|
If I understand this correctly the |
For me, at least, the warnings aren't shown at all, due to the |
|
It's shown once in https://travis-ci.org/matplotlib/matplotlib/jobs/99718127 but that might be do to other reasons. |
|
Let's see if the latest commit here fixes that warning in the doc build. If not, there's probably something else to track down. |
|
There is still a single |
jenshnielsen
added a commit
that referenced
this pull request
Jan 5, 2016
|
|
jenshnielsen |
fe701e3
|
jenshnielsen
merged commit fe701e3
into matplotlib:master
Jan 5, 2016
tacaswell
removed needs_review needs_revision
labels
Jan 5, 2016
jenshnielsen
added a commit
to jenshnielsen/matplotlib
that referenced
this pull request
Jan 5, 2016
|
|
jenshnielsen + jenshnielsen |
b68d050
|
mdboom commentedJan 1, 2016
No description provided.