labelplot

Adds plot legend based on 'Tag'
1,7K téléchargements
Mise à jour 22 juin 2009

Afficher la licence

This short function will generate a legend based on 'Tag' information given by plot. A legend title is also possible.

figure; hold on; x = 1:10; plot(x,x,'Tag','Positive'); plot(x,-x,'Tag','Negative'); labelplot('eo','v','Slope');

The above example is equivalent to
legend('Positive','Negative')
and adding a text box 'Slope' above it.

Citation pour cette source

Will Robertson (2026). labelplot (https://fr.mathworks.com/matlabcentral/fileexchange/11234-labelplot), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2006a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Legend dans Help Center et MATLAB Answers
Version Publié le Notes de version
1.1.0.0

Add BSD licence.

1.0.0.0