SET_XY Procedure

Standard Library procedure that sets the default data axis range for either the x- or y-axis. It should only be used for emulating Version 1 of PV‑WAVE.

Usage

SET_XY, xmin, xmax[, ymin, ymax]

Input Parameters

xminThe minimum default value for the x-axis.

xmaxThe maximum default value for the x-axis.

ymin(optional) The minimum default value for the y-axis.

ymax—(optional) The maximum default value for the y-axis.

Keywords

None.

Discussion

SET_XY is used for setting the range of data values that will be drawn in the rectangular display window. (Normally the axis range is determined automatically by scanning the data.)

You should only use SET_XY if you are trying to emulate Version 1 of PV‑WAVE. With more recent versions of PV‑WAVE, you should use the system variables !X.Range and !Y.Range, or their corresponding keywords.

Note:

SET_XY sets the Range, Crange, and S (scaling) fields of the system variables !X and !Y. This may cause subsequent plots of otherwise familiar data to appear skewed.

Example

PLOT, [12, 26, 35, 44], [50, 43, 89, 70]
WAIT, 1
PLOT, [12, 26, 35, 44], [50, 43, 89, 70], $
   XRange=[10, 50], YRange=[40, 100]
WAIT, 1
SET_XY, 10, 50, 40, 100
PLOT, [12, 26, 35, 44], [50, 43, 89, 70]

See Also

AXIS, PLOT, SET_VIEWPORT

Graphics and Plotting Keywords: [XY]Range, [XY]Style

System Variables: ![XY].Range, ![XY].Style

For more information, see the PV‑WAVE User Guide.