Member of the plots class.
deferdraw
deferdraw on
deferdraw off
Defers drawing operations or redraws all plot windows. deferdraw on defers all new drawing operations for the plot window. deferdraw off immediately redraws any plot windows with pending drawing operations. deferdraw toggles between the deferdraw on and deferdraw off states.
If a script calls multiple plots functions, National Instruments recommends that you add deferdraw on to the beginning of the script and deferdraw off to the end of the script in order to limit the amount of times the plot window refreshes.
This function is not supported in the LabVIEW Run-Time Engine. This function can remain in your scripts when you build a stand-alone application or shared library, but the LabVIEW Run-Time Engine does not execute this function.
X = [0:0.01:1];
Y = X.*X;
deferdraw on
plot(X, Y, 'bo-')
title('title')
text(3, 5, 'text-35')
grid
figure
plot3(X, Y, Y, 'rx--')
deferdraw off