Fix zero and NaN weighted bins in stephist for log-yscale

Bins with weight NaN and zero (which the Plots engine seems to
turn into into NaN automatically for log-yscale) should
not be draws in log-yscale.
This commit is contained in:
Oliver Schulz 2019-06-30 17:38:53 +02:00
parent 161ffdee94
commit db1e25252a

View File

@ -545,6 +545,8 @@ function _stepbins_path(edge, weights, baseline::Real, xscale::Symbol, yscale::S
if !isnan(last_w)
push!(x, a)
push!(y, baseline)
push!(x, NaN)
push!(y, NaN)
end
else
if isnan(last_w)