Bugfix in dyn_saveas
Fixed a bug for the non-Octave version where only the last active figure was printed instead of the figure with the actual handle. Octave eps-version still needs to be taken care of.time-shift
parent
36ea30346c
commit
cd26c3cebd
|
@ -32,16 +32,16 @@ function dyn_saveas(h,fname,DynareOptions)
|
|||
|
||||
if any(strcmp('eps',cellstr(DynareOptions.graph_format)))
|
||||
if exist('OCTAVE_VERSION')
|
||||
eval(['print -depsc2 ' fname '.eps']);
|
||||
eval(['print -depsc2 ' fname '.eps']); % still need to be fixed to take handle into account
|
||||
else
|
||||
eval(['print -depsc2 ' fname]);
|
||||
print(h,'-depsc2',[fname,'.eps'])
|
||||
end
|
||||
end
|
||||
if any(strcmp('pdf',cellstr(DynareOptions.graph_format)))
|
||||
if exist('OCTAVE_VERSION')
|
||||
warning('Octave cannot create pdf files!')
|
||||
else
|
||||
eval(['print -dpdf ' fname]);
|
||||
print(h,'-dpdf',[fname,'.pdf'])
|
||||
end
|
||||
end
|
||||
if any(strcmp('fig',cellstr(DynareOptions.graph_format)))
|
||||
|
|
Loading…
Reference in New Issue