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

**URL:** <https://discourse.julialang.org/t/statsplot-error-cannot-convert-normal-float64-to-series-data-for-plotting/94720>\
**Category:** General Usage\
**Tags:** package\
**Created:** [February 16, 2023, 12:35pm UTC](https://discourse.julialang.org/t/statsplot-error-cannot-convert-normal-float64-to-series-data-for-plotting/94720 "2023-02-16T12:35:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Post date:** [February 16, 2023, 12:35pm UTC](https://discourse.julialang.org/t/statsplot-error-cannot-convert-normal-float64-to-series-data-for-plotting/94720/1 "2023-02-16T12:35:59Z")

</div>

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

my status:

```julia
      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](https://github.com/JuliaPlots/StatsPlots.jl), here it is:

```julia
using Distributions, Plots
gr()

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

```

the error:

```julia
 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

```

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [February 16, 2023, 12:37pm UTC](https://discourse.julialang.org/t/statsplot-error-cannot-convert-normal-float64-to-series-data-for-plotting/94720/2 "2023-02-16T12:37:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Post date:** [February 16, 2023, 12:40pm UTC](https://discourse.julialang.org/t/statsplot-error-cannot-convert-normal-float64-to-series-data-for-plotting/94720/3 "2023-02-16T12:40:19Z")

</div>

yes I understand now!
