Add a title to a legend

버전 1.2.0.0 (1.8 KB) 작성자: Robert Cumming
Add a title to a legend - compatible with R2014b
다운로드 수: 1.3K
업데이트 날짜: 2014/12/18

라이선스 보기

The introduction of HG2 has removed an (undocumented) feature of legends - the ability to easily add titles to them.
This function is to replace/replicate that behaviour.
The function works on both HG1 and HG2.
hTitle = legendTitle ( hLegend, 'your title string' );
The function accepts arg pairs to format/customise the legend.
Function has listeners for the legend changing "Location", "Position" and being Deleted. A listener is also added to the parent figure when it changes size.

This submission is part of the matpigui toolbox (available from www.matpi.com)

인용 양식

Robert Cumming (2024). Add a title to a legend (https://www.mathworks.com/matlabcentral/fileexchange/48331-add-a-title-to-a-legend), MATLAB Central File Exchange. 검색됨 .

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

받음: LEGENDTITLE

Community Treasure Hunt

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

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

Update to link other pre-HG2 FEX to help users find this submission

1.1.0.0

Fix bug in the test script.

1.0.0.0