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 PropertiesThen make that axes the current axes before drawing by searching for the Tagwith findobj:axes(findobj('Tag','Special Axes'))TickDirin | outDirection of tick marks. For 2-D views, the default is to direct tick marksinward from the axis lines; 3-D views direct tick marks outward from the axisline.TickDirMode{auto} | manualAutomatic tick direction control. In auto mode, <strong>MATLAB</strong> directs tick marksinward for 2-D views and outward for 3-D views. When you specify a setting forTickDir, <strong>MATLAB</strong> sets TickDirMode to manual. In manual mode, <strong>MATLAB</strong>does not change the specified tick direction.TickLength[2DLength 3DLength]Length of tick marks. A two-element vector specifying the length of axes tickmarks. The first element is the length of tick marks used for 2-D views and thesecond element is the length of tick marks used for 3-D views. Specify tick marklengths in units normalized relative to the longest of the visible X-, Y-, or Z-axisannotation lines.Titlehandle of text objectAxes title. The handle of the text object that is used for the axes title. You canuse this handle to change the properties of the title text or you can set Title tothe handle of an existing text object. For example, the following statementchanges the color of the current title to red:set(get(gca,'Title'),'Color','r')To create a new title, set this property to the handle of the text object you wantto use:set(gca,'Title',text('String','New Title','Color','r'))However, it is generally simpler to use the title command to create or replacean axes title:title('New Title','Color','r')2-30

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

Saved successfully!

Ooh no, something went wrong!