Finish implementation and documentation of nograph option of shock_decomposition.m

time-shift
Johannes Pfeifer 2016-12-20 13:57:27 +01:00
parent 2d17ff43a4
commit 28d4ed1918
4 changed files with 10 additions and 5 deletions

View File

@ -7030,6 +7030,11 @@ the decomposition. Groups of shocks are defined in @xref{shock_groups} block.
@item colormap = @var{COLORMAP_NAME}
@anchor{colormap}. Controls the colormap used for the shocks decomposition
graphs. See @code{colormap} in Matlab/Octave manual.
@item nograph
@xref{nograph}. Suppresses the display and creation only within the @code{shock_decomposition}-command
but does not affect other commands.
@end table
@vindex oo_.shock_decomposition

View File

@ -134,6 +134,7 @@ options_.graphics.line_width = 1;
options_.graph_format = 'eps';
options_.nodisplay = 0;
options_.nograph = 0;
options_.no_graph.shock_decomposition = 0;
options_.XTick = [];
options_.XTickLabel = [];
options_.console_mode = 0;
@ -790,9 +791,6 @@ options_.mcppath.mu0 = [];
%Figure options
options_.figures.textwidth=0.8;
% Shock decomposition options
options_.shock_decomp.nograph = 0;
% initialize persistent variables in priordens()
priordens([],[],[],[],[],[],1);
% initialize persistent variables in dyn_first_order_solver()

View File

@ -139,4 +139,6 @@ else
shock_names = M_.exo_names;
end
graph_decomp(z,shock_names,M_.endo_names,i_var,options_.initial_date,M_,options_)
if ~options_.no_graph.shock_decomposition
graph_decomp(z,shock_names,M_.endo_names,i_var,options_.initial_date,M_,options_)
end

View File

@ -2816,7 +2816,7 @@ o_nograph : NOGRAPH
| GRAPH
{ driver.option_num("nograph", "0"); }
;
o_shock_decomposition_nograph : NOGRAPH { driver.option_num("shock_decomp.nograph", "1"); }
o_shock_decomposition_nograph : NOGRAPH { driver.option_num("no_graph.shock_decomposition", "1"); }
o_nodisplay : NODISPLAY { driver.option_num("nodisplay","1"); };
o_graph_format : GRAPH_FORMAT EQUAL allowed_graph_formats
{ driver.process_graph_format_option(); }