Skip to content

Commit f0c4700

Browse files
Thore KockerolsThore Kockerols
authored andcommitted
fix correct levels for plots
1 parent 33f7fab commit f0c4700

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

ext/StatsPlotsExt.jl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,11 @@ function plot_irf_subplot(irf_data::Vector{<:AbstractVector{S}}, steady_state::V
994994
push!(plot_dat, y .+ ss)
995995
push!(plot_dat_dual, 100 * ((y .+ ss) ./ ss .- 1))
996996
else
997-
push!(plot_dat, y)
997+
if same_ss
998+
push!(plot_dat, y .+ ss)
999+
else
1000+
push!(plot_dat, y)
1001+
end
9981002
end
9991003
push!(pal_val, i)
10001004
end
@@ -1566,8 +1570,8 @@ function plot_irf!(𝓂::ℳ;
15661570

15671571
if length(pp) > 0
15681572
if shock == :single_shock_per_irf
1569-
shock_string = ": multiple shocks"
1570-
shock_name = "multiple_shocks"
1573+
shock_string = ": multiple shocks"
1574+
shock_name = "multiple_shocks"
15711575
elseif shock == :simulate
15721576
shock_string = ": simulate all"
15731577
shock_name = "simulation"

0 commit comments

Comments
 (0)