Language Reference |
defines the data window
where window is a numeric matrix or literal specifying a window. The rectangular area's boundary is given in world coordinates, where you specify the lower-left and upper-right corners in the form
{minimum-x minimum-y maximum-x maximum-y} |
The GWINDOW subroutine sets up the window for scaling data values in subsequent graphics primitives. It is in effect until the next GWINDOW call or until the segment is closed. The coordinates in use for this graphics command are world coordinates. An example that uses the GWINDOW subroutine follows:
ydata={2.358,0.606,3.669,1.000,0.981,1.192,0.926,1.590, 1.806,1.962,4.028,3.148,1.836,2.845,1.013,0.414}; xdata={1.215,0.930,1.152,1.138,0.061,0.696,0.686,1.072, 1.074,0.934,0.808,1.071,1.009,1.142,1.229,0.595}; /* WD shows the actual range of the data */ wd=(min(xdata)||min(ydata))//(max(xdata)||max(ydata)); call gwindow(wd);
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.