FHist.jl icon indicating copy to clipboard operation
FHist.jl copied to clipboard

[Makie] `stephist` missing edges when some bins are empty in the middle of the histogram

Open Moelf opened this issue 1 year ago • 1 comments

julia> using FHist, CairoMakie

julia> h = Hist1D(;binedges = 0:3, bincounts = [2, 0, 10])

julia> begin
           stephist(h; axis=(; yticks=[1,10,100], yscale=log10))
           ylims!(1, 100)
           current_figure()
       end

image

Moelf avatar May 08 '24 19:05 Moelf

After the fix: image

Moelf avatar May 08 '24 20:05 Moelf