Workaround to avoid popup figures with nodisplay option saved as fig in MATLAB.

time-shift
Marco Ratto 2016-12-20 09:14:48 +01:00
parent 2b9779204a
commit 4ecf1d9f5d
1 changed files with 5 additions and 1 deletions

View File

@ -52,7 +52,11 @@ if any(strcmp('fig',cellstr(DynareOptions.graph_format)))
error('Octave cannot create fig files!')
else
if DynareOptions.nodisplay
set(h, 'Visible','on');
% set(h,'Units','Normalized')
% mypos=get(h,'Position');
% set(h,'Position',[-1 -1 mypos(3:4)])
% set(h, 'Visible','on');
set(h,'CreateFcn','set(gcf, ''Visible'',''on'')') ;
end
saveas(h,[fname '.fig']);
end