12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Axes PropertiesParentfigure handleAxes parent. The handle of the axes’ parent object. The parent of an axes objectis the figure in which it is displayed. The utility function gcf returns the handleof the current axes’ Parent. You can reparent axes to other figure objects.PlotBoxAspectRatio[px py pz]Relative scaling of axes plotbox. A three-element vector controlling the relativescaling of the plot box in the x-, y-, and z-directions. The plot box is a boxenclosing the axes data region as defined by the x-, y-, and z-axis limits.Note that the PlotBoxAspectRatio property interacts with theDataAspectRatio, XLimMode, YLimMode, and ZLimMode properties to control theway graphics objects are displayed in the axes. Setting thePlotBoxAspectRatio disables stretch-to-fill behavior, ifDataAspectRatioMode, PlotBoxAspectRatioMode, and CameraViewAngleModeare all auto.PlotBoxAspectRatioMode{auto} | manualUser or <strong>MATLAB</strong> controlled axis scaling. This property controls whether thevalues of the PlotBoxAspectRatio property are user defined or selectedautomatically by <strong>MATLAB</strong>. Setting values for the PlotBoxAspectRatioproperty automatically sets this property to manual. Changing thePlotBoxAspectRatioMode to manual disables stretch-to-fill behavior, ifDataAspectRatioMode, PlotBoxAspectRatioMode, and CameraViewAngleModeare all auto.Positionfour-element vectorPosition of axes. A four-element vector specifying a rectangle that locates theaxes within the figure window. The vector is of the form:[left bottom width height]where left and bottom define the distance from the lower-left corner of thefigure window to the lower-left corner of the rectangle. width and height arethe dimensions of the rectangle. All measurements are in units specified by theUnits property.When axes stretch-to-fill behavior is enabled (when DataAspectRatioMode,PlotBoxAspectRatioMode, CameraViewAngleMode are all auto), the axes arestretched to fill the Position rectangle. When stretch-to-fill is disabled, the2-28

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!