Legend for Contour Plots

版本 1.1.0 (5.0 KB) 作者: Patrik Forssén
Adds a curve description legend to a contour plot
388.0 次下载
更新时间 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