`plspage`: Set page parameters
Prev | Chapter 18. The Common API for PLplot | Next

#### `plspage`: Set page parameters

`plspage (` | xp ,
| yp ,
| xleng ,
| yleng ,
| xoff ,
| yoff `)`;

Sets the page configuration (optional). If an individual parameter is zero then that parameter value is not updated. Not all parameters are recognized by all drivers and the interpretation is device-dependent. The X-window driver uses the length and offset parameters to determine the window size and location. The length and offset values are expressed in units that are specific to the current driver. For instance: screen drivers will usually interpret them as number of pixels, whereas printer drivers will usually use mm.

This routine, if used, must be called before initializing PLplot. It may be called at later times for interactive drivers to change only the dpi for subsequent redraws which you can force via a call to `plreplot`. If this function is not called then the page size defaults to landscape A4 for drivers which use real world page sizes and 744 pixels wide by 538 pixels high for raster drivers. The default value for dx and dy is 90 pixels per inch for raster drivers.

`xp` (``PLFLT``, input)

  Number of pixels per inch (DPI), x. Used only by raster drivers, ignored by drivers which use "real world" units (e.g. mm).

`yp` (``PLFLT``, input)

  Number of pixels per inch (DPI), y. Used only by raster drivers, ignored by drivers which use "real world" units (e.g. mm).

`xleng` (``PLINT``, input)

  Page length, x.

`yleng` (``PLINT``, input)

  Page length, y.

`xoff` (``PLINT``, input)

  Page offset, x.

`yoff` (``PLINT``, input)

  Page offset, y.

Redacted form: `plspage(xp, yp, xleng, yleng, xoff, yoff)`

This function is used in examples 14 and 31.

Prev | Up | Next
`plsori`: Set orientation | Home | `plspal0`: Set the cmap0 palette using the specified `cmap0*.pal` format file