Adding legends

2 vues (au cours des 30 derniers jours)
Tim Mottram
Tim Mottram le 30 Jan 2012
Because of the way I am plotting my graph it is requires that I add legends manually. Is there a way to insert a custom legend? for example (on the current axis): add legend('string name','box type','line colour') or something like that?
Regards
Tim
Thanks in advance :)

Réponses (1)

Bjorn Gustavsson
Bjorn Gustavsson le 30 Jan 2012
If the default legend function does not cut it for you, maybe one of the variants found on the file exchange gets the job done:
Otherwise you might have to do your own version - or in the worst case truly manually.
HTH,

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by