Skip to content

Commit dc605e5

Browse files
Add cleansyms tuple method
Fixes #497
1 parent 78525d5 commit dc605e5

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
@@ -83,7 +83,7 @@ DEFAULT_PLOT_FUNC(x,y,z) = (x,y,z) # For v0.5.2 bug
8383
seriestype --> :path
8484

8585
# Special case labels when vars = (:x,:y,:z) or (:x) or [:x,:y] ...
86-
if typeof(vars) <: Tuple && (issymbollike(vars[1]) && issymbollike(vars[2]))
86+
if typeof(vars) <: Tuple && (issymbollike(vars[1]) && issymbollike(vars[2]))
8787
xguide --> strs[int_vars[1][2]]
8888
yguide --> strs[int_vars[1][3]]
8989
if length(vars) > 2
@@ -160,6 +160,7 @@ function getsyms(sol)
160160
end
161161

162162
cleansyms(syms::Nothing) = nothing
163+
cleansyms(syms::Tuple) = collect(cleansym(sym) for sym in syms)
163164
cleansyms(syms::Vector{Symbol}) = cleansym.(syms)
164165
function cleansym(sym::Symbol)
165166
str = String(sym)

0 commit comments

Comments
 (0)