[Master Index]
[Index for /tools/hpmatlab/toolbox/matlab/plotxy]
legend
(/tools/hpmatlab/toolbox/matlab/plotxy/legend.m)
Function Synopsis
hx=legend(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11)
Help text
LEGEND Graph legend.
LEGEND(string1,string2,string3, ...) puts a legend on the
current plot using the specified strings as labels.
LEGEND(linetype1,string1,linetype2,string2, ...) specifies
the line types/colors for each label.
Linetypes can be any valid PLOT linetype.
LEGEND(h,...) puts a legend on the plot with handle h.
LEGEND(M), where M is a string matrix, and LEGEND(H,M)
where H is a vector of handles to lines also works.
LEGEND OFF removes the legend from the current axes.
LEGEND(...,TOL) sets the tolerance for covering data points.
If LEGEND finds no location where less than TOL data points are
covered, LEGEND resizes the plot and places the legend outside.
TOL = -1 forces the legend to be placed outside the plot.
TOL = 0 places the legend on the plot unless no location can be
found that will not obscure data points.
To move the legend, press the left mouse button on the
legend and drag to the desired location.
Examples:
x = 0:.2:12;
plot(x,bessel(1,x),x,bessel(2,x),x,bessel(3,x));
legend('First','Second','Third');
legend('First','Second','Third',-1)
To avoid grid or plot lines obscuring the legend, make the legend
the current axes before printing. For example:
h=legend('string')
axes(h)
print
When the legend axes are made the current axes, the figure window
may not be redrawn. To force a redraw, use REFRESH.
See also REFRESH, PLOT.
Cross-Reference Information
This function calls
- any /tools/hpmatlab/toolbox/matlab/ops/any.m
- axes /tools/hpmatlab/toolbox/matlab/graphics/axes.m
- delete /tools/hpmatlab/toolbox/matlab/general/delete.m
- disp /tools/hpmatlab/toolbox/matlab/general/disp.m
- else /tools/hpmatlab/toolbox/matlab/lang/else.m
- elseif /tools/hpmatlab/toolbox/matlab/lang/elseif.m
- end /tools/hpmatlab/toolbox/matlab/lang/end.m
- eval /tools/hpmatlab/toolbox/matlab/lang/eval.m
- exist /tools/hpmatlab/toolbox/matlab/ops/exist.m
- flipud /tools/hpmatlab/toolbox/matlab/elmat/flipud.m
- for /tools/hpmatlab/toolbox/matlab/lang/for.m
- gca /tools/hpmatlab/toolbox/matlab/graphics/gca.m
- get /tools/hpmatlab/toolbox/matlab/graphics/get.m
- help /tools/hpmatlab/toolbox/matlab/general/help.m
- i /tools/hpmatlab/toolbox/matlab/elmat/i.m
- if /tools/hpmatlab/toolbox/matlab/lang/if.m
- isempty /tools/hpmatlab/toolbox/matlab/ops/isempty.m
- j /tools/hpmatlab/toolbox/matlab/elmat/j.m
- length /tools/hpmatlab/toolbox/matlab/general/length.m
- line /tools/hpmatlab/toolbox/matlab/plotxy/line.m
- lscan /tools/hpmatlab/toolbox/matlab/plotxy/lscan.m
- max /tools/hpmatlab/toolbox/matlab/datafun/max.m
- moveaxis /tools/hpmatlab/toolbox/matlab/plotxy/moveaxis.m
- nargin /tools/hpmatlab/toolbox/matlab/elmat/nargin.m
- nargout /tools/hpmatlab/toolbox/matlab/elmat/nargout.m
- ones /tools/hpmatlab/toolbox/matlab/elmat/ones.m
- return /tools/hpmatlab/toolbox/matlab/lang/return.m
- set /tools/hpmatlab/toolbox/matlab/graphics/set.m
- size /tools/hpmatlab/toolbox/matlab/general/size.m
- sum /tools/hpmatlab/toolbox/matlab/datafun/sum.m
- text /tools/hpmatlab/toolbox/matlab/plotxy/text.m
- type /tools/hpmatlab/toolbox/matlab/general/type.m
- zeros /tools/hpmatlab/toolbox/matlab/elmat/zeros.m
Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON