PLOTMODE

Purpose:

Enables or Disables a Window from drawing a graph.

Syntax:

PLOTMODE(win, mode, plotnow)

win

-

Optional. Window Reference. Defaults to the current Window.

mode

-

An integer, the plotting mode:

0:

Plotting disabled

1:

Plotting enabled (default)

plotnow

-

Optional. An integer, the force replot flag if mode > 0:

0:

Plot when ready

1:

Draw plotting region immediately (default)

2:

Draw entire Window immediately

Returns:

An integer, 1 if plotting is enabled, else 0.

Example:

The PLOTMODE function can be useful in a vertical bar construction to suppress plotting of the intermediate steps in the command string. For example, if Window 1 contained a test series :

 

W2: plotmode(0)|W1*W1|setdeltax(.01)|expandh(2)|plotmode(1)

 

displays only the squared and expanded series.

 

However, PLOTMODE is generally not required. For example, the above expression can be written as:

 

W2: W1*W1;setdeltax(.01);expandh(2)

 

In this case, intermediate plots are automatically suppressed between each semicolon delimited expression until the entire statement has been evaluated. Separating multiple statements by semicolons is preferred.

Remarks:

POFF (a macro) is equivalent to plotmode(0) and disables plotting.

PON (a macro) is equivalent to plotmode(1) and enables plotting and forces an immediate re-plot.

 

For plotmode(1, 1), the plotting region is immediately redrawn. The axes scales and tics are not effected.

 

For plotmode(1, 2), the entire Window is immediately redrawn causing the axes scales to resize and redraw.

See Also:

| (Vertical Bar)

CALC

ONPLOT

PROTECT