Skip to content

Commit 59bea76

Browse files
committed
Add simple plotting recipe for DiffEqArray
1 parent b6a29b0 commit 59bea76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vector_of_array.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ Base.show(io::IO, m::MIME"text/plain", x::AbstractDiffEqArray) = (print(io,"t: "
213213
convert(Array,VA)
214214
end
215215
@recipe function f(VA::AbstractDiffEqArray)
216+
xguide --> ((VA.indepsym !== nothing) ? string(VA.indepsym) : "")
217+
label --> ((VA.syms !== nothing) ? reshape(string.(VA.syms), 1, :) : "")
216218
VA.t,VA'
217219
end
218220
@recipe function f(VA::DiffEqArray{T,1}) where {T}

0 commit comments

Comments
 (0)