fix figure update bug in VisualISAMPlot when run with "Save Figures" enabled.
parent
9ac2ae5755
commit
0d5cb9a7e0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue