Graphics Previous page   Next Page

Changing Axis Direction

The XDir, YDir, and ZDir properties control the direction of increasing values on the respective axis. In the default 2-D view, the x-axis values increase from left to right and the y-axis values increase from bottom to top. The z-axis points out of the screen.

You can change the direction of increasing values by setting the associated property to reverse. For example, setting XDir to reverse,

produces a plot whose x-axis decreases from left to right.

In the 3-D view, the y-axis increases from front to back and the z-axis increases from bottom to top.

Setting the x-, y-, and z-directions to reverse,

yields


Previous page  Setting Tick Mark Locations Using Multiple X- and Y-Axes Next page

© 1994-2005 The MathWorks, Inc.