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.
It says that
The
mean
andmeanvar
versions return aDiffEqArray
which can be directly plotted.
Okay. So I tried to plot. But this happens…
plot(timeseries_steps_mean(sol_SSA))
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…
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??