Animation issue with getframe

1 次查看(过去 30 天)
Jakob
Jakob 2013-6-6
Hi
I'm using the getframe on a surf plot. The figure is created with:
figure('Renderer','zbuffer');
set(gca,'NextPlot','replaceChildren');
axis tight;
This gives me a plot with nothing in it. If I remove the
set(gca,'NextPlot','replaceChildren');
the plot becomes visible, but does not overwrite the earlier plot. Hold is off.
Any ideas?

回答(1 个)

Image Analyst
Image Analyst 2013-6-6
To reset the earlier plot and completely overwrite it with the new plot, try this:
cla reset;

类别

Help CenterFile Exchange 中查找有关 Animation 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by