# 'DiffEqArray' is not directly plotted

**URL:** https://discourse.julialang.org/t/diffeqarray-is-not-directly-plotted/97643
**Category:** New to Julia
**Tags:** question
**Created:** [April 19, 2023, 9:08am UTC](https://discourse.julialang.org/t/diffeqarray-is-not-directly-plotted/97643 "2023-04-19T09:08:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Random\_0826](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/random_0826/32/49128_2.png) [@Random\_0826](https://discourse.julialang.org/u/Random_0826)
#### Post date: [April 19, 2023, 9:08am UTC](https://discourse.julialang.org/t/diffeqarray-is-not-directly-plotted/97643/1 "2023-04-19T09:08:06Z")

</div>

Hello. I am using Julia for the first time.  
I want to use the function ‘timeseries\_steps\_mean’ which is explained in the under website.

> **[Parallel Ensemble Simulations · DifferentialEquations.jl](https://docs.sciml.ai/DiffEqDocs/stable/features/ensemble/)**
>
> Documentation for DifferentialEquations.jl.

It says that

> The `mean` and `meanvar` versions return a `DiffEqArray` which can be directly plotted.

Okay. So I tried to plot. But this happens…

```julia
plot(timeseries_steps_mean(sol_SSA))

```

```julia
type DiffEqArray has no field indepsym

Stacktrace:
 [1] getproperty
   @ .\Base.jl:38 [inlined]
 [2] macro expansion
   @ C:\Users\tjrgh\.julia\packages\RecursiveArrayTools\VzH8Y\src\vector_of_array.jl:439 [inlined]
 [3] apply_recipe(plotattributes::AbstractDict{Symbol, Any}, VA::RecursiveArrayTools.AbstractDiffEqArray)
   @ RecursiveArrayTools C:\Users\tjrgh\.julia\packages\RecipesBase\z10lo\src\RecipesBase.jl:300
 [4] _process_userrecipes!(plt::Any, plotattributes::Any, args::Any)
   @ RecipesPipeline C:\Users\tjrgh\.julia\packages\RecipesPipeline\XxUHt\src\user_recipe.jl:38
 [5] recipe_pipeline!(plt::Any, plotattributes::Any, args::Any)
   @ RecipesPipeline C:\Users\tjrgh\.julia\packages\RecipesPipeline\XxUHt\src\RecipesPipeline.jl:72
 [6] _plot!(plt::Plots.Plot, plotattributes::Any, args::Any)
   @ Plots C:\Users\tjrgh\.julia\packages\Plots\B5j7d\src\plot.jl:223
 [7] plot(args::Any; kw::Base.Pairs{Symbol, V, Tuple{Vararg{Symbol, N}}, NamedTuple{names, T}} where {V, N, names, T<:Tuple{Vararg{Any, N}}})
   @ Plots C:\Users\tjrgh\.julia\packages\Plots\B5j7d\src\plot.jl:102
 [8] plot(args::Any)
   @ Plots C:\Users\tjrgh\.julia\packages\Plots\B5j7d\src\plot.jl:93
 [9] top-level scope
   @ In[62]:1

```

So I found if the value of timeseries\_steps\_mean is something wrong, but nothing is wrong…

```julia
t: 501-element Vector{Float64}:
  0.0
  0.1
  0.2
  0.3
  0.4
  0.5
  0.6
  0.7
  0.8
  0.9
  1.0
  1.1
  1.2
  ⋮
 48.9
 49.0
 49.1
 49.2
 49.3
 49.4
 49.5
 49.6
 49.7
 49.8
 49.9
 50.0
u: 501-element Vector{Vector{Float64}}:
 [1.0, 1.0]
 [9.0, 2.2]
 [14.2, 5.0]
 [19.2, 8.4]
 [22.6, 13.1]
 [25.3, 17.7]
 [27.3, 22.9]
 [27.7, 28.0]
 [29.7, 34.1]
 [32.6, 39.0]
 [33.7, 45.2]
 [34.4, 50.8]
 [34.7, 57.4]
 ⋮
 [90.5, 249.2]
 [94.0, 246.2]
 [92.6, 247.4]
 [88.6, 251.7]
 [89.1, 252.4]
 [87.1, 256.1]
 [88.8, 255.8]
 [91.3, 253.4]
 [95.4, 249.6]
 [98.0, 248.0]
 [96.7, 247.5]
 [98.1, 246.2]

```

Okay, I want to plot this data. But when I try, it always says ‘type DiffEqArray has no field indepsym’.  
How can I solve this problem??

---

<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: [April 19, 2023, 9:36am UTC](https://discourse.julialang.org/t/diffeqarray-is-not-directly-plotted/97643/2 "2023-04-19T09:36:43Z")

</div>

Which version of DiffEq are you on? Your question in the other thread suggested you are working with an old version, so make sure that your version matches the version of whatever documentation you are looking at.

---

<div class="post-metadata">

### Author: ![Random\_0826](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/random_0826/32/49128_2.png) [@Random\_0826](https://discourse.julialang.org/u/Random_0826)
#### Post date: [April 19, 2023, 9:59am UTC](https://discourse.julialang.org/t/diffeqarray-is-not-directly-plotted/97643/3 "2023-04-19T09:59:51Z")

</div>

I am using DifferentialEquations v7.7.0.  
And the documentation I am looking (if it need to solve the problem) is : [Using MomentClosure · MomentClosure.jl](https://augustinas1.github.io/MomentClosure.jl/dev/tutorials/using_momentclosure/#)

---

<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: [April 19, 2023, 1:47pm UTC](https://discourse.julialang.org/t/diffeqarray-is-not-directly-plotted/97643/4 "2023-04-19T13:47:03Z")

</div>

But we had already established in the other thread that `vars` is not a supported keyword in DiffEq v7 any longer, so it is likely that MomentClosure relies on the plotting API of an older version of DiffEq - the last MomentClosure release is 9 month old and doesn’t have compat bounds for DiffEq so the docs probably haven’t been updated to the latest DiffEq version.
