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 Propertiesaxes are made as large as possible, while obeying all other properties, withoutextending outside the Position rectangleProjection{orthographic} | perspectiveType of projection. This property selects between two projection types:• orthographic – This projection maintains the correct relative dimensions ofgraphics objects with regard to the distance a given point is from the viewer.Parallel lines in the data are drawn parallel on the screen.• perspective – This projection incorporates foreshortening, which allows youto perceive depth in 2-D representations of 3-D objects. Perspectiveprojection does not preserve the relative dimensions of objects; a distant linesegment displays smaller than a nearer line segment of the same length.Parallel lines in the data may not appear parallel on screen.Selectedon | offIs object selected. When you set this property to on, <strong>MATLAB</strong> displays selection“handles” at the corners and midpoints if the SelectionHighlight property isalso on (the default). You can, for example, define the ButtonDownFcn callbackroutine to set this property to on, thereby indicating that the axes has beenselected.SelectionHighlight{on} | offObjects highlight when selected. When the Selected property is on, <strong>MATLAB</strong>indicates the selected state by drawing four edge handles and four cornerhandles. When SelectionHighlight is off, <strong>MATLAB</strong> does not draw thehandles.TagstringUser-specified object label. The Tag property provides a means to identifygraphics objects with a user-specified label. This is particularly useful whenconstructing interactive graphics programs that would otherwise need todefine object handles as global variables or pass them as arguments betweencallback routines.For example, suppose you want to direct all graphics output from an M-file toa particular axes, regardless of user actions that may have changed the currentaxes. To do this, identify the axes with a Tag:axes('Tag','Special Axes')2-29

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

Saved successfully!

Ooh no, something went wrong!