Skip to content

Commit

Permalink
Merge pull request #851 from AayushSabharwal/as/hotfix-plotting
Browse files Browse the repository at this point in the history
fix: hotfix `plottable_indices`
  • Loading branch information
ChrisRackauckas authored Nov 7, 2024
2 parents 85f907b + 31920bb commit 99d9e45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/solutions/solution_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 99d9e45

Please sign in to comment.