Skip to content

Commit

Permalink
LabelledEnsembleSummary plots
Browse files Browse the repository at this point in the history
  • Loading branch information
ivborissov committed Jul 22, 2024
1 parent a09403b commit 73dfdc4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/plots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ end
end
=#

@recipe function plot(s::Pair{Symbol,S}) where S<:Union{AbstractResult, EnsembleSummary}
@recipe function plot(s::Pair{Symbol,S}) where S<:Union{AbstractResult, EnsembleSummary, LabelledEnsembleSummary}
@series begin
title := "$(first(s))"
last(s)
end
end

@recipe function plot(sim::Vector{Pair{Symbol,S}}) where S<:Union{AbstractResult, EnsembleSummary}
@recipe function plot(sim::Vector{Pair{Symbol,S}}) where S<:Union{AbstractResult, EnsembleSummary, LabelledEnsembleSummary}
(m,n) = layout_choice(length(sim))
layout := (m,n)
size := (400*n,300*m)
Expand Down Expand Up @@ -186,4 +186,5 @@ end
sim.t, u[i]
end
end
end
end

0 comments on commit 73dfdc4

Please sign in to comment.