Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

deferdraw (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the plots class.

Syntax

deferdraw

deferdraw on

deferdraw off

Description

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.

Details

Examples

Details

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.

Examples

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

Related Topics

figure
grid
plot


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit