-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
matplotlib stepfilled histogram breaks at the value 10^-1 on xubuntu #5885
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
Can you please include the code in-line? What exactly do you mean by 'break down'? |
I meant to add pictures, here they come. |
By "break-down" I mean the graph doesn't plot past 10^-1 on the y-axis |
With what version? The code you provided works fine with 1.4.3 and 1.5.0. (And on a side note, you shouldn't really use |
It looks like the version on Windows is 1.4.3 and Xubuntu's is 1.3.1. I downloaded the 1.5.1 and re ran the code and the graph is the same. Also instead of getting 1.5.1 when I execute this, python -c 'import matplotlib; print(matplotlib.version)' , I get 1.3.1 so for some reason the version hasn't changed. |
@QuLogic Why do you recommend against the use of pylab? |
pylab shouldn't be used for scripting. It really should only be for On Wed, Jan 20, 2016 at 6:20 PM, kxf010 [email protected] wrote:
|
They are not even that edge: In [26]: min((i for i in range(3)))
Out[26]: 0
In [27]: import numpy as np
In [28]: np.min((i for i in range(3)))
Out[28]: <generator object <genexpr> at 0x7fcd58ccfca8> or more fun In [32]: bool(np.all((0 for j in range(5))))
Out[32]: True |
We really should get around to taking advantage of the single-dispatch On Wed, Jan 20, 2016 at 8:01 PM, Thomas A Caswell [email protected]
|
Thanks! Also, are there any known workarounds for when an older version is in use? |
yeah, don't use pylab... (actually, there is a real workaround, but it is On Thu, Jan 21, 2016 at 9:23 AM, kxf010 [email protected] wrote:
|
See https://stackoverflow.com/questions/18774388/re-import-aliased-shadowed-python-built-in-methods for how to get the original functions back. However, this has been side tracked from the original bug. What version of mpl are you using? |
I'm using both 1.5.1 and 1.3.1. My goal is to try and get a working bit of code on 1.3.1 so users will be able to use the code without having to update matplotlib as 1.3.1 is the latest in Ubuntu's Software Center(USC). For some reason it hasn't actually updated to 1.5.1 on the USC. |
It looks like there is not a direct work-around with 1.3.1. The best course of action would be to do your histograming via numpy bins, edges = np.histogram(data) and then ship a version of the code in #643 (comment) to do the plotting. We definitely will not be releasing a 1.3.2. |
Why is it that when the code in the text file is run through python the graph seems to break down at 10^-1 on the y-axis?
hist.txt
What it should look like: https://gyazo.com/b57ad2c8fb67580caf7e6296f33fa86e
What it actually looks like: https://gyazo.com/22470f9d7c9a46316061ca1c7874ac33
The text was updated successfully, but these errors were encountered: