legend('sin(x)','cos(x)','Location','North');
Matlab位置选择
设置 | 位置 |
---|---|
'North' | inside plot box near top |
'South' | inside bottom |
'East' | inside right |
'West' | inside left |
'NorthEast' | inside top right (default for 2-D plots) |
'NorthWest' | inside top left |
'SouthEast' | inside bottom right |
'SouthWest' | inside bottom left |
'NorthOutside' | outside plot box near top |
'SouthOutside' | outside bottom |
'EastOutside' | outside right |
'WestOutside' | outside left |
'NorthEastOutside' | outside top rig |