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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Axes PropertiesCurrentPoint 2-by-3 matrixLocation of last button click, in axes data units. A 2-by-3 matrix containing thecoordinates of two points defined by the location of the pointer. These twopoints lie on the line that is perpendicular to the plane of the screen and passesthrough the pointer. The 3-D coordinates are the points, in the axes coordinatesystem, where this line intersects the front and back surfaces of the axesvolume (which is defined by the axes x, y, and z limits).The returned matrix is of the form:x backy backz backx fronty frontz front<strong>MATLAB</strong> updates the CurrentPoint property whenever a button-click eventoccurs. The pointer does not have to be within the axes, or even the figurewindow; <strong>MATLAB</strong> returns the coordinates with respect to the requested axesregardless of the pointer location.DataAspectRatio[dx dy dz]Relative scaling of data units. A three-element vector controlling the relativescaling of data units in the x, y, and z directions. For example, setting thisproperty t o [1 2 1] causes the length of one unit of data in the x direction tobe the same length as two units of data in the y direction and one unit of datain the z direction.Note that the DataAspectRatio property interacts with thePlotBoxAspectRatio, XLimMode, YLimMode, and ZLimMode properties to controlhow <strong>MATLAB</strong> scales the x-, y-, and z-axis. Setting the DataAspectRatio willdisable the stretch-to-fill behavior, if DataAspectRatioMode,PlotBoxAspectRatioMode, and CameraViewAngleMode are all auto. Thefollowing table describes the interaction between properties whenstretch-to-fill behavior is disabled.2-21

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

Saved successfully!

Ooh no, something went wrong!