Getting Started Previous page   Next Page

Axis Labels and Titles

The xlabel, ylabel, and zlabel commands add x-, y-, and z-axis labels. The title command adds a title at the top of the figure and the text function inserts text anywhere in the figure.

You can produce mathematical symbols using LaTeX notation in the text string, as the following example illustrates:

You can also set these options interactively. See Editing Plots for more information.

Note that the location of the text string is defined in axes units (i.e., the same units as the data). See the annotation function for a way to place text in normalized figure units.


Previous page  Controlling the Axes Saving Figures Next page

© 1994-2005 The MathWorks, Inc.