fix figure update bug in VisualISAMPlot when run with "Save Figures" enabled.

release/4.3a0
Duy-Nguyen Ta 2012-09-04 05:13:35 +00:00
parent 9ac2ae5755
commit 0d5cb9a7e0
1 changed files with 5 additions and 4 deletions

View File

@ -39,11 +39,12 @@ drawnow
%% do various optional things %% do various optional things
if options.saveFigures if options.saveFigures
fig2 = figure('visible','off'); figToSave = figure('visible','off');
newax = copyobj(h,fig2); newax = copyobj(h,figToSave);
colormap(fig2,'hot'); colormap(figToSave,'hot');
set(newax, 'units', 'normalized', 'position', [0.13 0.11 0.775 0.815]); set(newax, 'units', 'normalized', 'position', [0.13 0.11 0.775 0.815]);
print(fig2,'-dpng',sprintf('VisualiSAM%03d.png',M)); print(figToSave,'-dpng',sprintf('VisualiSAM%03d.png',M));
axes(h);
end end
if options.saveDotFiles if options.saveDotFiles