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:
parent
161ffdee94
commit
db1e25252a
@ -545,6 +545,8 @@ function _stepbins_path(edge, weights, baseline::Real, xscale::Symbol, yscale::S
|
|||||||
if !isnan(last_w)
|
if !isnan(last_w)
|
||||||
push!(x, a)
|
push!(x, a)
|
||||||
push!(y, baseline)
|
push!(y, baseline)
|
||||||
|
push!(x, NaN)
|
||||||
|
push!(y, NaN)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if isnan(last_w)
|
if isnan(last_w)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user