How do I make an histogram with no vertical edges between bars in Plots.jl?

I would like to make an histogram like this one:


but I don’t know how to do it. I can set the fillalpha option to zero to have empty bars, but the vertical edges remain:
image
And if I set linecolor to :transparent, the external outline also is removed. Is there a way to only leave the external outline of the histogram?
I’m using Plots.jl with GR as backend. I’m willing to change backend if necessary, but I’m not sure which one to use.

In StatsBase, if you compute the histogram h then you could plot it as follows:

using StatsBase, Distributions, Plots; gr()
data = rand(Normal(),10_000)
h = fit(Histogram, data, nbins=100)
plot(h, seriestype=:steps)
1 Like

You can use stephist for that

2 Likes