-
Notifications
You must be signed in to change notification settings - Fork 250
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
Inexact error for histogram2d
#965
Comments
@tlnagy Maybe a good default is to set the number of bins to be one in that axis if there is no variance in the data along that axis (min = max) and then choose the bin width to be 1.0? I suppose choosing the bin width is arbitrary and could be misleading, though. |
A possible workaround: y=ones(20)
y[1:2] += [-1, 1]*0.1
p = plot(x=rand(20), y=y, Geom.histogram2d(ybincount=1)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Julia, v0.5.1
Works:
Throws
InexactError()
.My guess is that the error lies in a place where one bin along a certain axis has all of the values.
The text was updated successfully, but these errors were encountered: