plot_conditional_forecast: add an error message under Octave <= 3.2
The bug in the graphics code is fixed in Octave 3.4. Closes: #212time-shift
parent
6bdb220e0d
commit
7dde591992
|
@ -27,6 +27,11 @@ function plot_icforecast(Variables,periods)
|
|||
% You should have received a copy of the GNU General Public License
|
||||
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
if exist('OCTAVE_VERSION') && octave_ver_less_than('3.4.0')
|
||||
% The set() command on the handle returned by area() crashes in Octave 3.2
|
||||
error('plot_conditional_forecast: you need Octave >= 3.4 (because of a bug in older versions)')
|
||||
end
|
||||
|
||||
load conditional_forecasts;
|
||||
|
||||
if nargin==1% Set default number of periods.
|
||||
|
|
|
@ -69,4 +69,6 @@ end;
|
|||
|
||||
conditional_forecast(parameter_set=calibration, controlled_varexo=(e_a,e_m));
|
||||
|
||||
plot_conditional_forecast(periods=10) gy_obs gp_obs;
|
||||
if ~(exist('OCTAVE_VERSION') && octave_ver_less_than('3.4.0'))
|
||||
plot_conditional_forecast(periods=10) gy_obs gp_obs;
|
||||
end
|
||||
|
|
|
@ -111,17 +111,25 @@ end;
|
|||
|
||||
conditional_forecast(parameter_set=prior_mode, controlled_varexo=(e_a,e_m));
|
||||
|
||||
if ~(exist('OCTAVE_VERSION') && octave_ver_less_than('3.4.0'))
|
||||
plot_conditional_forecast(periods=10) gy_obs gp_obs;
|
||||
end
|
||||
|
||||
conditional_forecast(parameter_set=posterior_mode, controlled_varexo=(e_a,e_m));
|
||||
|
||||
if ~(exist('OCTAVE_VERSION') && octave_ver_less_than('3.4.0'))
|
||||
plot_conditional_forecast(periods=10) gy_obs gp_obs;
|
||||
end
|
||||
|
||||
conditional_forecast(parameter_set=posterior_mean, controlled_varexo=(e_a,e_m));
|
||||
|
||||
if ~(exist('OCTAVE_VERSION') && octave_ver_less_than('3.4.0'))
|
||||
plot_conditional_forecast(periods=10) gy_obs gp_obs;
|
||||
end
|
||||
|
||||
conditional_forecast(parameter_set=posterior_median, controlled_varexo=(e_a,e_m));
|
||||
|
||||
if ~(exist('OCTAVE_VERSION') && octave_ver_less_than('3.4.0'))
|
||||
plot_conditional_forecast(periods=10) gy_obs gp_obs;
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue