Graphics |
You can add lines and three types of arrows to a graph and attach them to any point in the figure. The three types of arrows include
Insert a line or arrow by clicking the appropriate icon in the figure toolbar, then click down, drag the line or arrow to the desired point, and release the mouse. The arrowhead appears at the terminal end.
With the line or arrow selected, right-click to display the context menu, which provides access to a number of options.
Inserting a Text Arrow
A text arrow combines a textbox with an arrow. It is useful for labeling points on a graph. Add a text arrow to a graph by selecting the arrow icon that has a T above the arrow. Insert the text arrow and type text in the box.
Pinning the Arrowhead End
You can attach the arrowhead end to the point of interest on the graph while letting the text box automatically reposition itself as you zoom or pan the graph.
There are three ways to pin annotations:
Modifying the Text Arrow from the Context Menu
Right-clicking on a text arrow displays its context menu, which enables you to perform a number of operations on the text arrow. The context menus for lines, arrows, and double arrows contain similar items:
For example, the following illustration shows the text border enabled and the text background color set to yellow.
Setting Line and Arrow Properties
You can use the Property Editor to set line and arrow properties by selecting Properties from the context menu. The Property Editor displays the same properties that are described above in the context menu section.
You can click the Inspector button on the Property Editor to display the Property Inspector. The Property Inspector displays all properties for the selected annotation object. However, you should not change some of these properties, because doing so can affect the proper functioning of the annotation. See the following sections in the reference documentation for descriptions of the properties you can change on the respective objects.
Textbox Annotations | Adding a Colorbar to a Graph |
© 1994-2005 The MathWorks, Inc.