Skip to content

Commit 99d9e45

Browse files
Merge pull request #851 from AayushSabharwal/as/hotfix-plotting
fix: hotfix `plottable_indices`
2 parents 85f907b + 31920bb commit 99d9e45

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::AbstractArray) = 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)