SPANX, SPANY

Purpose:

Restricts the scale display to a subrange of the plotting Window.

Syntax:

SPANX(win, min, max)

SPANY(win, min, max)

win

-

Optional. A window, defaults to the current Window.

min

-

A real, the minimum x or y value for displayed range.

max

-

A real, the maximum x or y value for displayed range.

Example:

W1: gsin(100,.01);setvunits("Volts")

W2: gcos(100,.01);setvunits("Amps")

W3: w1;staggery(0);staggerx(0);Scales(2);
sety(-4,1.5);spany(-1,1);overlay(w2,red);
focus(2);staggery(0);staggerx(0);scales(13);
sety(-1.5,4);spany(-1,1)

 

Window 3 contains the 2 curves overlayed with flush scales with a defined y-axis span which is a portion of the entire plot range.

Remarks:

SPANX and SPANY require scales to be flush with the plotting area, that is, STAGGERX(0) and/or STAGGERY(0) must be used first. SPANX and SPANY apply to the scales associated with the current focus of the specified Window.

 

The commands restrict a scale on the x or y axis to the intersection of the range given by the min and max endpoints, and the range covered by the plotting area of the specified Window.

 

Use SETXY to set the range (full span) covered by the plotting area. Use the mouse to drag the curve with its scales in the plotting area, or the toolbar buttons to expand/contract the x- and y-axis span.

 

See STRIPCHART to create a multi-series stacked stripchart.

See Also:

FOCUS

OVERLAY

SCALES

SETXY

STAGGERX, STAGGERY

STRIPCHART