| MATLAB Function Reference | ![]() |
Syntax
orient orientlandscape orientportrait orienttall orient(fig_handle), orient(simulink_model) orient(fig_handle,orientation), orient(simulink_model,orientation)
Description
orient
以字串型態回傳現在的頁面導向,可能是 portrait, landscape,
或 tall。
orient landscape
設定現行圖表的頁面導向為整頁如同風景畫般水平延伸,即水平地設定最長頁面的尺寸。圖表將放置於頁面的正中央且將縮放置與頁面邊框僅有 0.25 英吋。
orient portrait
設定現行圖表的頁面導向為如同肖像般垂直延伸,即垂直地設定最長頁面的尺寸。portrait
選項即為 MATLAB 的預設頁面導向。(注意使用 portrait 選項最後的結果將被使用者對圖表屬性的改變所影響。參考 "Algorithm"
以得到更多的資訊。)
orient tall
將現行的圖表擴充至整個頁面的大小,僅留 0.25 英吋的邊框。
orient(fig_handle), orient(simulink_model)
回傳所定義的圖表或連結樣式的頁面導向。
orient(fig_handle,orientation), orient(simulink_model,orientation)
針對定義的圖表或連結樣式設定至定義的頁面導向(landscape, portrait, or tall)。
Algorithm
orient 針對現行的圖表設定 PaperOrientation, PaperPosition,
及 PaperUnits 屬性。隨後的列印選項使用這些屬性。使用 portrait
選項的結果被下列預設的屬性值所影響:
PaperType 和預設圖表的 PaperType
相同且預設圖表的 PaperOrientation 設定成 landscape,則 orient portrait
指令使用 PaperOrientation 和 PaperPosition 的值來放置頁面中的圖表,且使用 x, y 和寬度、高度 ([y,x,height,width]) 將圖表放置頁面。PaperType 和預設圖表的 PaperType
不同,則 orient portrait 指令使用現行圖表 PaperPosition
的值和 x, y 及寬度、高度([y,x,height,width]) 將圖表放置頁面。See Also
PaperOrientation, PaperPosition, PaperSize, PaperType, and PaperUnits properties of figure graphics objects.
| optimset | orth | ![]() |