StatsPlot error: Cannot convert Normal{Float64} to series data for plotting

Hi all I am trying the plot from StatsPlot but I can’t…

my status:

      Status `~/LasthrimProjection/JupyterLab/Statistics/Project.toml`
  [31c24e10] Distributions v0.25.80
  [f3b207a7] StatsPlots v0.15.4


the code is from GitHub - JuliaPlots/StatsPlots.jl: Statistical plotting recipes for Plots.jl, here it is:

using Distributions, Plots
gr()

plot(Normal(3,5), fill=(0, .5,:orange))

the error:

 LoadError: Cannot convert Normal{Float64} to series data for plotting
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] _prepare_series_data(x::Normal{Float64})
    @ RecipesPipeline ~/.julia/packages/RecipesPipeline/XxUHt/src/series.jl:8
  [3] _series_data_vector(x::Normal{Float64}, plotattributes::Dict{Symbol, Any})
    @ RecipesPipeline ~/.julia/packages/RecipesPipeline/XxUHt/src/series.jl:36
  [4] macro expansion

You aren’t actually using StatsPlots, but Plots - these are different packages (although StatsPlots builds on Plots).

1 Like

yes I understand now!