Plot legend below the plot

For the plot, how can I put the legend below the plot (as in excel)?

 Accepted Answer

Walter Roberson
Walter Roberson on 28 Dec 2017
Call legend() with 'Location', 'southoutside'

3 Comments

alpedhuez
alpedhuez on 28 Dec 2017
Edited: alpedhuez on 28 Dec 2017
Then I want to have explanations for four lines lined up horizontally
like
- line 1 - line 2 - line 3 -line 4
not like
- line 1
- line 2
- line 3
- line 4
Thank you.
'Orientation','horizontal'
Hi Walter. Could you have a look at this question? Something related to this question.

Sign in to comment.

More Answers (0)

Products

Tags

Community Treasure Hunt

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

Start Hunting!