/GRAPHICS_VIEWING

To define Normalisation transformations. Either automatically (ZONE and SIZE) or 'by hand' (SVP, SWN and SELNT).

/GRAPHICS/VIEWING/ZONE [ nx ny ifirst chopt ]

NX I Number of divisions along X D=1
NY I Number of divisions along Y D=1
IFIRST I First division number D=1
CHOPT C Option D=' '

CHOPT:

'' ''
'S' Redefine zones on current picture
'' '' Define the zones for all subsequent pictures.

Subdivide the picture into NX by NY zones, starting at zone IFIRST (count along X first).

Note that the command ZONE doesn't define the normalisation transformations (see SWN, SVP and SELNT). They are define only when commands like H/PLOT, NULL etc .. are performed.

/GRAPHICS/VIEWING/SIZE [ xsize ysize ]

XSIZE R Size along X D=20.
YSIZE R Size along Y D=20.

Set the size of the picture. On the terminal, the pictures will have the ratio YSIZE/XSIZE, and, if a metafile is produced, pictures will be YSIZE by XSIZE cm. This command sets the parameters for the normalisation transformation number 1 to [0-XSIZE], [0-YSIZE].

/GRAPHICS/VIEWING/SVP nt x1 x2 y1 y2

NT I Normalisation transformation number
X1 R Low X of viewport in NDC D=0 R=0:1
X2 R High X of viewport in NDC D=1 R=0:1
Y1 R Low Y of viewport in NDC D=0 R=0:1
Y2 R High Y of viewport in NDC D=1 R=0:1

Set the viewport of the normalisation transformation NT in the Normalized Device Coordinates (NDC). Note that the command SELNT should be invoke in order to validate the viewport parameters.

This command, and also SWN, should not be used for a common PAW usage (H/PLOT, GRAPH etc ...). Commands like ZONE and SIZE should be used.

/GRAPHICS/VIEWING/SWN nt x1 x2 y1 y2

NT I Normalize transformation number
X1 R Low X of window in WC D=0
X2 R High X of window in WC D=20
Y1 R Low Y of window in WC D=0
Y2 R High Y of window in WC D=20

Set the window of the normalisation transformation NT in World Coordinates (WC). Note that the command SELNT should be invoke in order to validate the window parameters.

Example:

Nul 0 1 -1 1 | Draw an empty frame (0,1)x(-1,1) Line 0 0 1 1 | Draw a line in (0,1)x(-1,1) Swn 10 0 10 0 10 | Change the coordinates to (0,10)x(0,10) Selnt 10 | Activate the coordinates (0,10)x(0,10) Line 0 0 1 1 | Draw a line in (0,10)x(0,10)

This command, and also SVP, should not be used for a common PAW usage (H/PLOT, GRAPH etc ...). Commands like ZONE and SIZE should be used.

/GRAPHICS/VIEWING/SELNT nt

NT I Normalisation transformation number

Select a normalisation transformation number.

If ZONE 2 2 is active , then: If ZONE 1 1 is active, then: +------------------------------+ +-----------------------------+ | | | | | +----------+ +---------+ | | +-----------------------+ | | | | | | | | | | | | | NT=10 | | NT=20 | | | | | | | | | | | | | | | | | +----------+ +---------+ | | | | | | | | | NT=10 | | | +----------+ +---------+ | | | | | | | | | | | | | | | | | NT=30 | | NT=40 | | | | | | | | | | | | | | | | | +----------+ +---------+ | | | | | | | | +-----------------------+ | | NT=1 | | NT=1 | +------------------------------+ +-----------------------------+

Example:

Zone 1 2 | Define 2 zones. Nul 0 1 -1 1 | Draw an empty frame in the first zone Nul 0 1 -1 1 | Draw an empty frame in the second zone Line 0 0 1 1 | Draw a line in second zone Selnt 10 | select the first zone Line 0 0 1 1 | Draw a line in the first zone