Products & Services Industries Academia Support User Community Company

Learn more about MATLAB   

orient - Hardcopy paper orientation

GUI Alternative

Use File —> Print Preview on the figure window menu to directly manipulate print layout, paper size, headers, fonts and other properties when printing figures. For details, see Using Print Preview in the MATLAB Graphics documentation.

Syntax

orient
orient landscape
orient portrait
orient tall
orient(fig_handle), orient(simulink_model)
orient(fig_handle,orientation), orient(simulink_model,orientation)

Description

orient returns a string with the current paper orientation: 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 the MATLAB 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.

orient(fig_handle,orientation), orient(simulink_model,orientation) 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, printpreview, set

PaperOrientation, PaperPosition, PaperSize, PaperType, and PaperUnits properties of figure graphics objects

Printing for related functions

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS