Dear all,
How to fill color between (2, 3) in the graph below?
julia> using Distributions
julia> plot(Normal(0, 1))
Dear all,
How to fill color between (2, 3) in the graph below?
julia> using Distributions
julia> plot(Normal(0, 1))
In Julia, we use fill(0, 0.5, :orange)
, But what does 0 mean here?
I try to use fill(2:3, 0.5, :orange)
,but it doesn’t work.
I think there was some discussion about supporting this, but not sure what the current status is. For now, it looks like just plotting it twice works fine:
using StatsPlots, Distributions
n = Normal(0, 1)
plot(n)
plot!(n, 2, 3; fill=true)
thanks, It works well