-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
plt.hist does not obey the hist.bins rcparams #7356
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
We just need to re-run boilerplate.py |
Looking at the links at the top of boilerplate.py it seems that the reasons for its existence (rather than dynamically generating wrapper functions at import time) is
The first point is obviously no longer a problem. Regarding the second one, I see that IPython carries its own backport of Signature objects (https://github.com/ipython/ipython/blob/master/IPython/utils/_signatures.py), so it should be possible to at least display the correct signature within IPython (python2) even using dynamically generated wrappers. Or we could (very reasonably) just wait until Py2 support is dropped to get rid of boilerplate.py; in such a case, it may make sense to integrate the running of boilerplate.py into |
There is an open issue for checking that we have run boiler plate in the tests #3701 #3587 and #2736 are two half-started attempts to generate pyplot at run time. #4488 is a pass at a helper decorator for the same purpose. There was some concern about the generating at runtime approach messing with static code analysis tools (like pycharm's auto complete / suggestions). We do currently use their signature backport, but only if we are already in an IPython sessions (which we check by seeing if IPython is already in the |
Given that pycharm even supports PEP484 semantics for type annotations (https://www.jetbrains.com/help/pycharm/2016.1/type-hinting-in-pycharm.html), I would be amazed that it is not able to support signature objects... |
This is fixed in both master and v2.x as of yesterday. |
2.0b4 and master
The first histogram has 10 bins, the second one has 11 bins.
Note that this does not affect calling the
hist
method on an explicitly created Axes object.The text was updated successfully, but these errors were encountered: