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
Histogram gap artifacts #4340
Comments
I'm going to try my hand at a pull request for this. Stay tuned. |
Pretty sure the issue is that the default number of bins in 10. We don't currently try to do anything intelligent on guessing at 'good' values for bins. Also see #4316 |
On 2015/04/15 3:54 AM, Chris Fonnesbeck wrote:
Chris, check the numpy mailing list. The pull request for this should go If auto bin selection is added to numpy.histogram, we will support it in |
closing as not-a-matplotlib problem. A version of numpy with 'auto' as a valid bin argument is now out (but I don't think it works well with categorical axes yet). |
I'm hoping there is a way to improve the default behavior of
hist
, which often generates gap artifacts between classes in histograms. For example, even using clean integer data that has natural breaks:I get a result like the following:
This plot is misleading because it suggests there are intervening classes with zero counts in between the bars. I assume this is a solved problem, since it does not occur in other packages (e.g.
ggplot
).The text was updated successfully, but these errors were encountered: