DADiSP Worksheet Functions > Function Categories > Plot Attributes > SETXY

 

SETXY

Purpose:

Specifies the X and Y coordinate range of a Window.

Syntax:

SETXY(win, xleft, xright, ybottom, ytop)

win

-

Optional. Window reference. Defaults to the current Window.

xleft

-

A real. Left-hand Window boundary.

xright

-

A real. Right-hand Window boundary.

ybottom

-

A real. Bottom Window boundary.

ytop

-

A real. Top Window boundary.

Example:

setxy(0.0,100.0,-1.0,1.0)

 

sets the x-axis from 0.0 to 100.0 and the y-axis boundaries from -1.0 to 1.0.

 

If Window 1 contained a 1024-point series, then

 

setxy(0.0,100*deltax,0.0,max(W1))

 

would display the first 100 points of the current series falling between the values of 0.0 and the maximum y value of the entire series.

Remarks:

SETXY will expand or compress the current units scale. To refresh the Window and redraw appropriate scales, toggle the F5 key or Scales toolbar button.

See Also:

GETXL

GETXR

GETYB

GETYT

SETWLIKE

SETX

SETY