-
Notifications
You must be signed in to change notification settings - Fork 10
plot(histogram,fill(1.5,5))
is an empty plot
#62
Comments
Thanks for reporting. The problem may come from StatsBase though (edges and weights seem incorrect): julia> using StatsBase
julia> fit(Histogram, fill(1.5, 5))
Histogram{Int64,1,Tuple{StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}}}
edges:
2.5:2.0:4.5
weights: [0]
closed: left
isdensity: false |
Here is the issue in StatsBase JuliaStats/StatsBase.jl#456. Things should work here as soon as StatsBase implements a fix for the "mono valued vector" here (we rely on StatsBase for histogram computation). |
@piever Could you define your requirements for the julia> StatsBase.histrange(0.5, 0.5, 5)
0.5:5.0e-15:0.500000000000015 |
Thanks for fixing this! I think it's important to have the weights of the histogram sum to the correct value (before they were |
I tried with Rebugger but I was unable to step into the second layer of |
Actually we could check for this specific case and make a good plot with only one bin. |
So one possible solution would be to fit the histogram with data converted to 32bit. |
Sure, I'll look into it after the StatsBase PR is merged (just ping me here where that happens). |
Hi,
plot(histogram,fill(1.5,5))
is an empty plot and the repl output is:The text was updated successfully, but these errors were encountered: