Skip to content
Snippets Groups Projects
Commit cba7a3fc authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Homogeneize behavior for PDF and FIG under Octave

parent 469a1d2c
No related branches found
No related tags found
No related merge requests found
...@@ -44,13 +44,16 @@ if any(strcmp('pdf',cellstr(DynareOptions.graph_format))) ...@@ -44,13 +44,16 @@ if any(strcmp('pdf',cellstr(DynareOptions.graph_format)))
eval(['print -dpdf ' fname]); eval(['print -dpdf ' fname]);
end end
end end
if ~exist('OCTAVE_VERSION') ... if any(strcmp('fig',cellstr(DynareOptions.graph_format)))
&& any(strcmp('fig',cellstr(DynareOptions.graph_format))) if exist('OCTAVE_VERSION')
warning('Octave cannot create fig files!')
else
if DynareOptions.nodisplay if DynareOptions.nodisplay
set(h, 'Visible','on'); set(h, 'Visible','on');
end end
saveas(h,[fname '.fig']); saveas(h,[fname '.fig']);
end end
end
if DynareOptions.nodisplay if DynareOptions.nodisplay
close(h); close(h);
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment