Azzera filtri
Azzera filtri

How to represent multiple lines (20+) in legend?

18 visualizzazioni (ultimi 30 giorni)
hi I want to represent data with plot having 24 lines. but when I add the description of each line in the legend, the legend box crosses even the plot frame itself. For better visualization, what should I do. Kindly help me I will be highly thankful to you.
with best regards mudasir

Risposta accettata

KL
KL il 10 Set 2017
  5 Commenti
KL
KL il 9 Nov 2017
That's simple, use
legend_str{ii} = ['\theta_{' num2str(ii) '}'];
Mudasir Ahmed
Mudasir Ahmed il 9 Nov 2017
Dear sir KL,
Thank you so much. Now It is perfectly working.
best regards Mudasir

Accedi per commentare.

Più risposte (0)

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by