diff --git a/src/solutions/solution_interface.jl b/src/solutions/solution_interface.jl index c353e9a6a..7cca426f5 100644 --- a/src/solutions/solution_interface.jl +++ b/src/solutions/solution_interface.jl @@ -209,7 +209,8 @@ indices that can be plotted as continuous variables. This is useful for systems that store auxiliary variables in the state vector which are not meant to be used for plotting. """ -plottable_indices(x::AbstractArray) = 1:length(x) +plottable_indices(x:: AbstractArray) = 1:length(x) +plottable_indices(x::Number) = 1 @recipe function f(sol::AbstractTimeseriesSolution; plot_analytic = false,