Legend for Contour Plots

Adds a curve description legend to a contour plot
333 téléchargements
Mise à jour 17 juil. 2022

Afficher la licence

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)

Citation pour cette source

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

Compatibilité avec les versions de MATLAB
Créé avec R2020a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.1.0

Removed "type" input and used hidden property instead

1.0.0