legend_reverse

Version 3.0 (1,25 ko) par Moses
Create legend in reverse order. Uses the same name-pair arguments as the default legend() function.
44 téléchargements
Mise à jour 27 août 2020

Afficher la licence

Create legend in reverse order. Uses the same name-pair arguments as the default legend() function.
-Line plots
-Stacked bar graphs

Example 1:
x = 1:3;
y = [2 2 3; 2 5 6; 2 8 9; 2 11 12];
plot(x, y, 'LineWidth', 2)
legend_reverse('blue', 'red', 'orange', 'purple', 'Location', 'northwest');

Example 2:
y = [2 2 3; 2 5 6; 2 8 9; 2 11 12];
bar(y,'stacked');
legend_reverse('blue', 'red', 'orange', 'Location', 'northwest');

Citation pour cette source

Moses (2024). legend_reverse (https://www.mathworks.com/matlabcentral/fileexchange/79577-legend_reverse), 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
Remerciements

Inspiré par : Flip bar legend

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
3.0

-Fix function name.

2.0

-Edited function name and example.

1.0