Multi column legend in matlab plot
Show older comments
How can i set multicolumn and row legen in matlab R2016a,.
I could not find simple way to do it.
1 Comment
If you use MATLAB R2018a or later, you can use the NumColumns property of legend to specify the number of columns.
plot(rand(12))
legend('NumColumns',3,'Location','southOutside')
Accepted Answer
More Answers (0)
Categories
Find more on Legend in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!