Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Catch invalid interactive switch to log scale. #6983
Conversation
mdboom
added the
needs_review
label
Aug 26, 2016
anntzer
referenced
this pull request
Aug 26, 2016
Closed
Switching to log scale when there is no positive data crashes the Qt5 backend, causes inconsistent internal state in others #6852
|
Makes sense to me. How does the warning look. Should we change it to something more user friendly? |
I think it's clear enough? |
|
Yes |
LindyBalboa
commented
Aug 26, 2016
|
Looks good. I wasn't aware of the warnings module. Good to know! |
tacaswell
merged commit f95169e
into matplotlib:master
Aug 27, 2016
tacaswell
removed the
needs_review
label
Aug 27, 2016
QuLogic
added this to the
2.1 (next point release)
milestone
Aug 27, 2016
tacaswell
added a commit
that referenced
this pull request
Aug 27, 2016
|
|
tacaswell |
ac01d85
|
|
backported to v2.x as ac01d85 |
QuLogic
modified the milestone: 2.0 (style change major release), 2.1 (next point release)
Aug 27, 2016
anntzer
deleted the
anntzer:dont-crash-on-interactive-invalid-log branch
Sep 12, 2016
This was referenced Sep 12, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
anntzer commentedAug 26, 2016
plt.plot([1, 2], [-1, -2])and pressl(switch y to log-scale).Before, this would crash the Qt5 backend and cause an invalid internal
state in others, due to the complete lack of positive values. Now a
warning is printed and the command is cancelled.
See #6852.