-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Issue with plotting zeros in log space #4049
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Puzzling -- the values are masked out in the log scalar and have been for years. Something else is going wrong here. Investigating. |
First bad commit is 91725d8 (only affects master). Looking into a solution now. |
I thought I fixed this recently.... |
Great, thanks! That does indeed seem to be the same issue. |
This is a duplicate of #3998 |
Sorry I missed that duplicate. I have a few comments about the solution over at #4008... |
The following simple example shows an issues with zero values when calling
loglog
:The output is:
Of course, zero is undefined in log space, but I don't understand why it defaults to plotting a value of 0.1 instead. Doing:
Does the right thing on the other hand. So maybe the best solution is to replace 0 values by np.nan inside
loglog
?I am using matplotlib 1.5.x with Python 3.4.
The text was updated successfully, but these errors were encountered: