Legend for Contour Plots

버전 1.1.0 (4.96 KB) 작성자: Patrik Forssén
Adds a curve description legend to a contour plot
다운로드 수: 332
업데이트 날짜: 2022/7/17

라이선스 보기

Adds a curve description legend to a contour plot, this is preferable when putting labels on the contour curves clutter up the plot. The default description is the level, but you may optionally supply custom descriptions. You might also include descriptions of other plotted objects in the legend.
Example,
[X, Y, Z] = peaks(512);
figure
[~, hCont] = contour(X, Y, Z, 'LineWidth', 1.5);
contourLegend(hCont)
figure
[~, hCont] = contourf(X, Y, Z);
contourLegend(hCont)

인용 양식

Patrik Forssén (2024). Legend for Contour Plots (https://www.mathworks.com/matlabcentral/fileexchange/115120-legend-for-contour-plots), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2020a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

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

Removed "type" input and used hidden property instead

1.0.0