•
Line, Arrow, Text Arrow, Double Arrow — Add a line or
arrow annotation to the figure. Draw the arrow from tail to head. To move an existing
annotation, click the annotation to select it and drag it to the desired location. Press
the Delete key to delete the selected annotation.
NoteAdding formatting and annotations using the Figure tab is not supported for
invisible axes.
For example, suppose that you want to add formatting and annotations to the figure in
patients.mlx.
1
Add a title — In the Annotations section, select Title. A blue rectangle
appears prompting you to enter text. Type the text Weight vs. Height and press
Enter.
2
Add X and Y Labels — In the Annotations section, select X-Label. A blue
rectangle appears prompting you to enter text. Type the text Height and press
Enter. Select Y-Label. A blue rectangle appears prompting you to enter text.
Type the text Weight and press Enter.
3
Add a legend — In the Annotations section, select Legend. A legend
appears at the top right corner of the axes. Click the data1 description in the legend
and replace the text with Female. Click the data2 description in the legend and
replace the text with Male. Press Enter.
4
Add grid lines — In the Annotations section, select Grid. Grid lines appear
in the axes.
5
Add an arrow annotation — In the Annotations section, select Text Arrow.
Drawing the arrow from tail to head, position the arrow on the scatter plot pointing
to the lightest patient. Enter the text Lightest Patient and press Enter
(^6) Update the code — In the selected figure, click the Update Code button. The live
script now contains the code needed to reproduce the figure changes.
19 Live Scripts and Functions