diff --git a/matlab/dyn_saveas.m b/matlab/dyn_saveas.m index 2bd513cc8d9087718a3e4403f6b439d782fbf082..917ef687b9c6da710b68c63250663cb33f7a107e 100644 --- a/matlab/dyn_saveas.m +++ b/matlab/dyn_saveas.m @@ -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