@@ -1403,23 +1403,33 @@ function plot_irf!(𝓂::ℳ;
14031403
14041404 ppp = StatsPlots. plot (pp... ; attributes... )
14051405
1406+ ppp_pars = StatsPlots. plot (annotate_params_plot; attributes... )
1407+
1408+ pushfirst! (annotate_ss_page, " Plot index" => 1 : length (diffdict[:parameters ][param_nms[1 ]]))
1409+
14061410 push! (annotate_ss, annotate_ss_page)
14071411
14081412 if length (annotate_ss[pane]) > 0
14091413 annotate_ss_plot = plot_df (annotate_ss[pane])
14101414
1411- ppp2 = StatsPlots. plot (annotate_params_plot, annotate_ss_plot; attributes... )
1415+ ppp_ss = StatsPlots. plot (annotate_ss_plot; attributes... )
1416+
1417+ p = StatsPlots. plot (ppp,
1418+ legend_plot,
1419+ ppp_pars,
1420+ ppp_ss,
1421+ layout = StatsPlots. grid (4 , 1 , heights = [37 , 1 , 9 , 9 ] ./ 56 ),
1422+ plot_title = " Model: " * 𝓂. model_name* " " * shock_dir * shock_string * " (" * string (pane)* " /" * string (Int (ceil (n_subplots/ plots_per_page)))* " )" ;
1423+ attributes_redux... )
14121424 else
1413- ppp2 = StatsPlots. plot (annotate_params_plot; attributes... )
1425+ p = StatsPlots. plot (ppp,
1426+ legend_plot,
1427+ ppp_pars,
1428+ layout = StatsPlots. grid (3 , 1 , heights = [15 , 1 , 5 ] ./ 21 ),
1429+ plot_title = " Model: " * 𝓂. model_name* " " * shock_dir * shock_string * " (" * string (pane)* " /" * string (Int (ceil (n_subplots/ plots_per_page)))* " )" ;
1430+ attributes_redux... )
14141431 end
14151432
1416- p = StatsPlots. plot (ppp,
1417- legend_plot,
1418- ppp2,
1419- layout = StatsPlots. grid (3 , 1 , heights = [15 , 1 , 5 ] ./ 21 ),
1420- plot_title = " Model: " * 𝓂. model_name* " " * shock_dir * shock_string * " (" * string (pane)* " /" * string (Int (ceil (n_subplots/ plots_per_page)))* " )" ;
1421- attributes_redux... )
1422-
14231433 push! (return_plots,p)
14241434
14251435 if show_plots
@@ -1439,6 +1449,8 @@ function plot_irf!(𝓂::ℳ;
14391449 end
14401450 end
14411451
1452+ pushfirst! (annotate_ss_page, " Plot index" => 1 : length (diffdict[:parameters ][param_nms[1 ]]))
1453+
14421454 push! (annotate_ss, annotate_ss_page)
14431455
14441456 if length (pp) > 0
@@ -1458,20 +1470,32 @@ function plot_irf!(𝓂::ℳ;
14581470
14591471 ppp = StatsPlots. plot (pp... ; attributes... )
14601472
1473+ ppp_pars = StatsPlots. plot (annotate_params_plot; attributes... )
1474+
1475+ pushfirst! (annotate_ss_page, " Plot index" => 1 : length (diffdict[:parameters ][param_nms[1 ]]))
1476+
1477+ push! (annotate_ss, annotate_ss_page)
1478+
14611479 if length (annotate_ss[pane]) > 0
14621480 annotate_ss_plot = plot_df (annotate_ss[pane])
14631481
1464- ppp2 = StatsPlots. plot (annotate_params_plot, annotate_ss_plot; attributes... )
1465- else
1466- ppp2 = StatsPlots. plot (annotate_params_plot; attributes... )
1467- end
1482+ ppp_ss = StatsPlots. plot (annotate_ss_plot; attributes... )
14681483
1469- p = StatsPlots. plot (ppp,
1470- legend_plot,
1471- ppp2,
1472- layout = StatsPlots. grid (3 , 1 , heights = [15 , 1 , 5 ] ./ 21 ),
1473- plot_title = " Model: " * 𝓂. model_name* " " * shock_dir * shock_string * " (" * string (pane)* " /" * string (Int (ceil (n_subplots/ plots_per_page)))* " )" ;
1484+ p = StatsPlots. plot (ppp,
1485+ legend_plot,
1486+ ppp_pars,
1487+ ppp_ss,
1488+ layout = StatsPlots. grid (4 , 1 , heights = [37 , 1 , 9 , 9 ] ./ 56 ),
1489+ plot_title = " Model: " * 𝓂. model_name* " " * shock_dir * shock_string * " (" * string (pane)* " /" * string (Int (ceil (n_subplots/ plots_per_page)))* " )" ;
1490+ attributes_redux... )
1491+ else
1492+ p = StatsPlots. plot (ppp,
1493+ legend_plot,
1494+ ppp_pars,
1495+ layout = StatsPlots. grid (3 , 1 , heights = [15 , 1 , 5 ] ./ 21 ),
1496+ plot_title = " Model: " * 𝓂. model_name* " " * shock_dir * shock_string * " (" * string (pane)* " /" * string (Int (ceil (n_subplots/ plots_per_page)))* " )" ;
14741497 attributes_redux... )
1498+ end
14751499
14761500 push! (return_plots,p)
14771501
0 commit comments