From 31920bb2ae0363b04cd550ea6c47763700163662 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Thu, 7 Nov 2024 14:31:19 -0100 Subject: [PATCH] Update src/solutions/solution_interface.jl --- src/solutions/solution_interface.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/solutions/solution_interface.jl b/src/solutions/solution_interface.jl index 71aab9b97..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) = 1:length(x) +plottable_indices(x:: AbstractArray) = 1:length(x) +plottable_indices(x::Number) = 1 @recipe function f(sol::AbstractTimeseriesSolution; plot_analytic = false,