The same thing happens when I pass in normalize = true. Is this behavior intentional? Is there a way to turn it off, i.e. force there to be bars? I’m using Distributions v0.21.11 and StatsPlots v0.13.0.
Yes - I had originally proposed to use stephist as the default, because it works for few and very many bins, but bar-style histograms seemed to be too popular to not make them the default. But maybe this magic should depend on the number of bins, not the number of observations? @mkborregaard, what do you think?
The ideal solution, long term, would be to have something like a filled step hist with lines between the bins as the default, and make the lines between the bins thinner/weaker as the bin count increases, until they finally vanish if there are very many bins. This way, we’d have a smooth transition between both styles as the default.