Skip to content

Commit 31920bb

Browse files
Update src/solutions/solution_interface.jl
1 parent 769f285 commit 31920bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/solutions/solution_interface.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ indices that can be plotted as continuous variables. This is useful for systems
209209
that store auxiliary variables in the state vector which are not meant to be
210210
used for plotting.
211211
"""
212-
plottable_indices(x) = 1:length(x)
212+
plottable_indices(x:: AbstractArray) = 1:length(x)
213+
plottable_indices(x::Number) = 1
213214

214215
@recipe function f(sol::AbstractTimeseriesSolution;
215216
plot_analytic = false,

0 commit comments

Comments
 (0)