Skip to content

Commit bbdd876

Browse files
Fix EnsembleSummary plot recipe idxs kwarg
`EnsembleSummary`'s plot recipe refered to the variable indices as `trajectories`, likely typo from the `EnsembleSimulation` recipe above where that nomenclature made sense. Fixed it to use `idxs`, allowing users to select which variables to plot the summaries of, in line with the documentation.
1 parent f2a9b0c commit bbdd876

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ensemble/ensemble_solutions.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ end
158158
end
159159

160160
@recipe function f(sim::EnsembleSummary;
161-
trajectories = sim.u.u[1] isa AbstractArray ? eachindex(sim.u.u[1]) :
161+
idxs = sim.u.u[1] isa AbstractArray ? eachindex(sim.u.u[1]) :
162162
1,
163163
error_style = :ribbon, ci_type = :quantile)
164164
if ci_type == :SEM
@@ -192,7 +192,7 @@ end
192192
else
193193
error("ci_type choice not valid. Must be `:SEM` or `:quantile`")
194194
end
195-
for i in trajectories
195+
for i in idxs
196196
@series begin
197197
legend --> false
198198
linewidth --> 3

0 commit comments

Comments
 (0)