Octave can create PDF files
parent
35a2f38d6a
commit
6cc3be7252
|
@ -33,17 +33,16 @@ 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 ~exist('OCTAVE_VERSION') ...
|
||||
&& find(strcmp('fig',DynareOptions.graph_format))
|
||||
if DynareOptions.nodisplay
|
||||
set(h, 'Visible','on');
|
||||
end
|
||||
saveas(h,[fname '.fig']);
|
||||
end
|
||||
end
|
||||
if DynareOptions.nodisplay
|
||||
close(h);
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue