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

16 views (last 30 days)
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

Accepted Answer

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

Sign in to comment.

More Answers (0)

Categories

Find more on Data Distribution Plots in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!