Octave can create PDF files
parent
35a2f38d6a
commit
6cc3be7252
|
@ -33,16 +33,15 @@ function dyn_saveas(h,fname,DynareOptions)
|
||||||
if find(strcmp('eps',DynareOptions.graph_format))
|
if find(strcmp('eps',DynareOptions.graph_format))
|
||||||
eval(['print -depsc2 ' fname '.eps']);
|
eval(['print -depsc2 ' fname '.eps']);
|
||||||
end
|
end
|
||||||
if ~exist('OCTAVE_VERSION')
|
if find(strcmp('pdf',DynareOptions.graph_format))
|
||||||
if find(strcmp('pdf',DynareOptions.graph_format))
|
eval(['print -dpdf ' fname]);
|
||||||
eval(['print -dpdf ' fname]);
|
end
|
||||||
end
|
if ~exist('OCTAVE_VERSION') ...
|
||||||
if find(strcmp('fig',DynareOptions.graph_format))
|
&& find(strcmp('fig',DynareOptions.graph_format))
|
||||||
if DynareOptions.nodisplay
|
if DynareOptions.nodisplay
|
||||||
set(h, 'Visible','on');
|
set(h, 'Visible','on');
|
||||||
end
|
|
||||||
saveas(h,[fname '.fig']);
|
|
||||||
end
|
end
|
||||||
|
saveas(h,[fname '.fig']);
|
||||||
end
|
end
|
||||||
if DynareOptions.nodisplay
|
if DynareOptions.nodisplay
|
||||||
close(h);
|
close(h);
|
||||||
|
|
Loading…
Reference in New Issue