Skip to content

Commit f6d27ca

Browse files
committed
add shock matrix correct handling
1 parent 00b2f8b commit f6d27ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ext/StatsPlotsExt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,12 +1552,12 @@ function plot_irf!(𝓂::ℳ;
15521552

15531553
if haskey(diffdict, :shocks)
15541554
if all(length.(diffdict[:shock_names]) .== 1)
1555-
push!(annotate_diff_input, "Shock" => reduce(vcat,diffdict[:shocks]))
1555+
push!(annotate_diff_input, "Shock" => reduce(vcat, map(x -> typeof(x) <: AbstractArray ? "Shock Matrix" : x, diffdict[:shocks])))
15561556
else
15571557
push!(annotate_diff_input, "Shock" => diffdict[:shocks])
15581558
end
15591559
end
1560-
1560+
15611561
if haskey(diffdict, :initial_state)
15621562
unique_initial_state = unique(diffdict[:initial_state])
15631563

0 commit comments

Comments
 (0)