Navigation

Operators and Keywords

Function List:

C++ API

: orient (orientation)
: orient (hfig, orientation)
: orientation = orient ()
: orientation = orient (hfig)

Query or set the print orientation for figure hfig.

Valid values for orientation are "portrait", "landscape", and "tall".

The "landscape" option changes the orientation so the plot width is larger than the plot height. The "paperposition" is also modified so that the plot fills the page, while leaving a 0.25 inch border.

The "tall" option sets the orientation to "portrait" and fills the page with the plot, while leaving a 0.25 inch border.

The "portrait" option (default) changes the orientation so the plot height is larger than the plot width. It also restores the default "paperposition" property.

When called with no arguments, return the current print orientation.

If the argument hfig is omitted, then operate on the current figure returned by gcf.

See also: print, saveas.

Package: octave