Commit 6cc3be72 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Octave can create PDF files

parent 35a2f38d
......@@ -33,16 +33,15 @@ function dyn_saveas(h,fname,DynareOptions)
if find(strcmp('eps',DynareOptions.graph_format))
eval(['print -depsc2 ' fname '.eps']);
end
if ~exist('OCTAVE_VERSION')
if find(strcmp('pdf',DynareOptions.graph_format))
eval(['print -dpdf ' fname]);
end
if find(strcmp('fig',DynareOptions.graph_format))
if DynareOptions.nodisplay
set(h, 'Visible','on');
end
saveas(h,[fname '.fig']);
if find(strcmp('pdf',DynareOptions.graph_format))
eval(['print -dpdf ' fname]);
end
if ~exist('OCTAVE_VERSION') ...
&& find(strcmp('fig',DynareOptions.graph_format))
if DynareOptions.nodisplay
set(h, 'Visible','on');
end
saveas(h,[fname '.fig']);
end
if DynareOptions.nodisplay
close(h);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment