Chapter Contents |
Previous |
Next |
SAS/GRAPH Software: Reference |
Note: If you are using a terminal or PC that
emulates a terminal, it must be a graphics terminal.
In most environments, SAS/GRAPH automatically displays graphics output in the GRAPH window. If your environment does not support the GRAPH window, SAS/GRAPH displays your graphs with the direct display method. See Displaying Graphs with Direct Display.
You can suppress the display of graphics output with the NODISPLAY graphics option. Suppressing a display is useful when you want to create only a catalog entry.
Displaying Graphs with the GRAPH Window |
Some devices allow you to use up to four graph windows: GRAPH1, GRAPH2, GRAPH3, and GRAPH4. By default, the GRAPH1 window displays the graphs in the default catalog, WORK.GSEG, or the catalog that you specified with the GOUT= option.
The GRAPH window acts like other SAS windows: you can resize it and move it, and you can submit global SAS window commands from it. For details on sizing windows, see the SAS documentation for your operating environment. For a description of SAS window commands, see SAS Language: Reference.
GRAPH window commands control how the graphs appear
in the window. For a description of these commands, refer to the SAS Help
facility for the GRAPH window.
The GRAPHn command has the following form:
GRAPHn <<libref.> catalog-name <.entry-name <.GRSEG>>> |
To close the GRAPH window, issue the END command.
The default size of a GRAPH window depends on the display device.
Doing any of the following may change the HSIZE and VSIZE values and consequently the size of the GRAPH window:
In addition, resizing the GRAPH window can reduce the number of cells available for the output. In order to display some types of graphs in a reduced GRAPH window, you may need to increase the number of cells either by using the HPOS= and VPOS= graphics options or by modifying the device driver. To ensure that graphs have an adequate number of cells, use a full-size GRAPH window when creating the graphs.You can then reduce the window to replay the graphs. For more information on dimensions and cell size, see About the Graphics Output Area.
If you create most or all of your graphs at the same size or with the same aspect ratio, you can avoid distortion if you size the window before you draw the graphs and then use the WSAVE command to save the position and dimensions of the window. If you resize the GRAPH windows and do not use the WSAVE command, the new size is not saved, even in the same SAS session.
Displaying Graphs with Direct Display |
If the procedure produces more than one graph, you are prompted to press ENTER between each graph for the next one to be displayed. To return to your program, press END or ENTER after the last graph.
You can display the graphs automatically and control the amount of time between each graph with the GWAIT= and NOPROMPT graphics options. GWAIT= specifies the number of seconds before the next graph is drawn. NOPROMPT suppresses the delay between the graphs displayed. In this case, SAS/GRAPH automatically returns to your program after the last graph displays. (See Graphics Options and Device Parameters Dictionary for a complete description of these graphics options.)
With the direct display method, you cannot scroll to other graphs in the catalog. To redisplay graphs, you must rerun the procedure or replay the catalog entries. For information on replaying graphs, see The GREPLAY Procedure.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.