MATLAB Function Reference
  Go to function:
    Search    Help Desk 
orient    See Also

Set paper orientation for printed output

Syntax

Description

orient returns a string with the current paper orientation, either portrait, landscape, or tall.

orient landscape sets the paper orientation of the current Figure to full-page landscape, orienting the longest page dimension horizontally. The Figure is centered on the page and scaled to fit the page with a 0.25 inch border.

orient portrait sets the paper orientation of the current Figure to portrait, orienting the longest page dimension vertically. The portrait option returns the page orientation to MATLAB's default. (Note that the result of using the portrait option is affected by changes you make to Figure properties. See the "Algorithm" section for more specific information.)

orient tall maps the current Figure to the entire page in portrait orientation, leaving a 0.25 inch border.

orient(fig_handle), orient(simulink_model) returns the current orientation of the specified Figure or Simulink model.

sets the orientation for the specified Figure or Simulink model to the specified orientation (landscape, portrait, or tall).

Algorithm

orient sets the PaperOrientation, PaperPosition, and PaperUnits properties of the current Figure. Subsequent print operations use these properties. The result of using the portrait option can be affected by default property values as follows:

See Also

print, set

PaperOrientation, PaperPosition, PaperSize, PaperType, and PaperUnits properties of Figure graphics objects.



[ Previous | Help Desk | Next ]