Workaround to avoid popup figures with nodisplay option saved as fig in MATLAB.
parent
2b9779204a
commit
4ecf1d9f5d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue