Graphics Previous page   Next Page

Adding Text Annotations to Graphs

You can add freeform text annotations anywhere in a MATLAB figure to help explain your data or bring attention to specific points in your data sets.

If you enable plot editing mode, you can create text annotations by clicking in an area of the graph or the figure background and entering text. You can also add text annotations from the command line, using the text or gtext command.

Using plot editing mode or gtext makes it easy to place a text annotation anywhere in a graph. Use the text command when you want to position a text annotation at a specific point in a data set.


Previous page  Adding Axis Labels to Graphs Creating Text Annotations with the text or gtext Command Next page

© 1994-2005 The MathWorks, Inc.