Function Reference: Volume 2 (F-O) - The MathWorks - #1001

/ 1568


catalogue search
P. 1001
P. 1002
P. 1003
P. 1004
P. 1005
P. 1006
P. 1007
P. 1008
P. 1009
P. 1010
P. 1011
P. 1012
P. 1013
P. 1014
P. 1015
P. 1016
P. 1017
P. 1018
P. 1019
P. 1020
P. 1021
P. 1022
P. 1023
P. 1024
P. 1025
P. 1026
P. 1027
P. 1028
P. 1029
P. 1030
P. 1031
P. 1032
P. 1033
P. 1034
P. 1035
P. 1036
P. 1037
P. 1038
P. 1039
P. 1040
P. 1041
P. 1042
P. 1043
P. 1044
P. 1045
P. 1046
P. 1047
P. 1048
P. 1049
P. 1050


See other catalogues for The MathWorks

Text version of the page
legend
If the legend text does not fit in the 1-by-4 position vector, the position vector is resized around the midpoint to fit the legend text given its font and size, making the legend taller or wider. The location string can be all lowercase and can be abbreviated by sentinel letter (e.g., N,NE,NEO,etc.). Using one ofthe .. .Outside values for location ensures that the legend does not overlap the plot, whereas overlaps can occur when you specify any ofthe other cardinal values. The location property applies to colorbars and legends, but not to axes.
Obsolete Location Values
The first column ofthe following table shows the now-obsolete specifiers for legend locations that were in use prior to Version 7, along with a description ofthe locations and their current equivalent syntaxes:
Obsolete Specifier
Location in Axes
Current Specifier
-1
Outside axes on right side
NorthEastOutside
0
Inside axes
Best
1
Upper right corner of axes
NorthEast
2
Upper left corner of axes
NorthWest
3
Lower left corner of axes
SouthWest
4
Lower right corner of axes
SouthEast
legend(...,'Orientation','orientation') creates a legend with the legend items arranged in the specified orientation. orientation can be vertical (the default) or horizontal.
[legend_h,object_h,plot_h,text_strings] = legend(...) returns
• legend_h — Handle of the legend axes
• object_h — Handles ofthe line, patch, and text graphics objects used in the legend
• plot_h — Handles ofthe lines and other objects used in the plot
2-1945

pageCatalog pdf di En 2012-06-22-01