Flush Legend

버전 1.0.0.0 (2.79 KB) 작성자: Robert Richardson
Make legend flush with axes
다운로드 수: 116
업데이트 날짜: 2016/7/1

라이선스 보기

flushLegend makes the legend border flush with the lines of the plot axis. The legend location/position can be made flush with any corner, or at the centre-point of the sides. The location/position is assigned using standard Matlab legend notation (i.e. position_string = 'north', 'south', 'east', 'west', 'northeast', 'northwest' etc.) and abbreviations of these (i.e. position_string = 'n','s', 'e','w','ne','nw', etc).
Making the legend flush with the axis can be useful for making plots looking cleaner, especially if there is limited available space in the plot due to multiple data lines.

Usage:
Minimal usage: flushLegend( legend_handle )
Optional axis handle: flushLegend( legend_handle, axis_handle )
Optional position string: flushLegend( legend_handle, position_string )
Optional BOTH: flushLegend( legend_handle, axis_handle, positionString ): e.g. flushLegend( legend_handle, axis_handle, 'northeast' )

인용 양식

Robert Richardson (2024). Flush Legend (https://www.mathworks.com/matlabcentral/fileexchange/57962-flush-legend), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2016a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Legend에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0