From 769f2854292e2f8e34f1fac122164877d7d67b56 Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Thu, 7 Nov 2024 18:23:04 +0530 Subject: [PATCH 1/2] fix: hotfix `plottable_indices` --- src/solutions/solution_interface.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solutions/solution_interface.jl b/src/solutions/solution_interface.jl index c353e9a6a..71aab9b97 100644 --- a/src/solutions/solution_interface.jl +++ b/src/solutions/solution_interface.jl @@ -209,7 +209,7 @@ 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) = 1:length(x) @recipe function f(sol::AbstractTimeseriesSolution; plot_analytic = false, From 31920bb2ae0363b04cd550ea6c47763700163662 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Thu, 7 Nov 2024 14:31:19 -0100 Subject: [PATCH 2/2] 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,