This file is indexed.

/usr/share/freemat/help/text/legend.mdc is in freemat-help 4.0-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
LEGEND LEGEND Add Legent to Plot

Usage

This command adds a legend to the current plot.  Currently, the
following forms of the legend command are supported.  The
first form creates a legend with the given labels for the data
series:

  legend('label1','label2',...)

where 'label1' is the text label associated with data plot 1
and so on.  You can also use the legend command to control
the appearance of the legend in the current plot.  To remove the
legend from the current plot, use

  legend('off')

To hide the legend for the current plot (but do not remove it)

  legend('hide')

And to show the legend that has been hidden, use

  legend('show')

You can also toggle the display of the box surrounding the legend.
Use

  legend('boxoff')

or 

  legend('boxon')

to turn the legend box off or on, respectively.  To toggle the
visible state of the current legend, use

  legend('toggle')

Specifying no arguments at all (apart from an optional location 
argument as specified below) results in the legend being rebuilt.
This form is useful for picking up font changes or relocating the
legend.

  legend

By default, the legend command places the new legend in the 
upper right corner of the current plot.  To change this behavior,
use the 'location' specifier (must be the last two options to the command)

  legend(...,'location',option)

where option takes on the following possible values
  -  north,N - top center of plot 

  -  south,S - bottom center of plot

  -  east,E - middle right of plot

  -  west,W - middle left of plot

  -  northeast,NE - top right of plot (default behavior)

  -  northwest,NW - top left of plot

  -  southeast,SE - bottom right of plot

  -  southwest,SW - bottom left of plot

This implementation of legend is incomplete relative to the 
MATLAB API.  The functionality will be improved in future versions
of FreeMat.