GDDM-PGF V2R1.3 OPS User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF | BOOK


Controlling the aspect ratio of the graphics field

GDDM-PGF V2R1.3 OPS User's Guide
SC33-1776-00



Use the ASPECT command to fix the proportions of the graphics field within a frame defined by the width of the panel (80 columns) and its height less two lines (in most cases 22 or 30 lines).

Here's an example:


          aspect 2 1

This sets the width to 2 and the height to 1, generating a graphics field twice as wide as high. The field is as big as possible; on most screens the width is 80 columns and the height somewhat less than the allowed maximum.

You can request that the graphics field fills the entire available space by:


          aspect *

Don't use this option in a presentation aimed at more than one type of terminal; you'll get different results on different screens. However, you'll find it useful to establish the exact proportions of your terminal session or window.

If you are viewing a file of type ADMOPS, the default ASPECT is 100 67, which matches most terminals. This default ensures that, even if ASPECT is not set explicitly in the presentation, the presentation most probably will look as intended on all screens.

If you are viewing anything else, the default ASPECT is *, ensuring maximum use of the screen.

When you are using OPS to create foils or print, you will often want aspect ratios different from the screen. The following command, for example, generates a graphics field with the same format as vertical A4:


           aspect 21.0 29.7

The height is the allowed maximum; the width is about 38 columns on most screens. In dark mode, it looks like Figure 12. (This is an A4 version of the graphic shown in Figure 36 in topic 2.5.7.2.)


    __________________________________________________________________________________ 
   |                                                                                  |
   |                                                                                  |
   |                                                                                  |
   |                                                                                  |
   | PICTURE 9                                                                                 |
   |                                                                                  |
   |                                                                                  |
   |                                                                                  |
   |__________________________________________________________________________________|

Figure 12. Graphics field with aspect ratio A4


ASPECT also lets you use aliases to make this easier, such as:


          aspect a4

When the aspect ratio is taken from an alias, you can add L (landscape) or P (portrait) following the alias. A landscape picture is wider than it is high; a portrait is higher than it is wide. The illustration above shows a portrait-oriented graphics field.

Here's an example:


          aspect  a4  l      ;* give me landscape A4
          aspect  a4  p      ;* portrait - but that's also the default

When you use the ASPECT command as an infile command, OPS deletes the existing graphics field, and creates a new one in accordance with the command. It doesn't display the page again, so ASPECT must be executed before text and graphics commands that draw on the page in question. Also, because ASPECT modifies the coordinate system (described below), execute ASPECT before any command referring to coordinates, including RESET.

If you use the ASPECT command as a direct command, OPS refreshes the page when the new graphics field has been created. The appearance of the page depends on how text and graphics are defined.

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012