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 PropertiesXAxisLocationtop | {bottom}Location of x-axis tick marks and labels. This property controls where<strong>MATLAB</strong> displays the x-axis tick marks and labels. Setting this property to topmoves the x-axis to the top of the plot from its default position at the bottom.YAxisLocationright | {left}Location of y-axis tick marks and labels. This property controls where<strong>MATLAB</strong> displays the y-axis tick marks and labels. Setting this property toright moves the y-axis to the right side of the plot from its default position onthe left side. See the plotyy function for a simple way to use two y-axes.Properties That Control the X-, Y-, or Z-AxisXColor, YColor, ZColorColorSpecColor of axis lines. A three-element vector specifying an RGB triple, or apredefined <strong>MATLAB</strong> color string. This property determines the color of the axislines, tick marks, tick mark labels, and the axis grid lines of the respective x-,y-, and z-axis. The default axis color is white. See ColorSpec for details onspecifying colors.XDir, YDir, ZDir{normal} | reverseDirection of increasing values. A mode controlling the direction of increasingaxis values. axes form a right-hand coordinate system. By default:• x-axis values increase from left to right. To reverse the direction of increasingx values, set this property to reverse.• y-axis values increase from bottom to top (2-D view) or front to back (3-Dview). To reverse the direction of increasing y values, set this property toreverse.• z-axis values increase pointing out of the screen (2-D view) or from bottom totop (3-D view). To reverse the direction of increasing z values, set thisproperty to reverse.XGrid, YGrid, ZGridon | {off}Axis gridline mode. When you set any of these properties to on, <strong>MATLAB</strong> drawsgrid lines perpendicular to the respective axis (i.e., along lines of constant x, y,or z values). Use the grid command to set all three properties on or off at once.2-32

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

Saved successfully!

Ooh no, something went wrong!