command for multicolumn Llegend
古いコメントを表示
I have one figure which have many curves. I can't show my legend inside the figure so I have to show them outside. There are two possible layouts(orientation) of legends: Vertical and Horizontal
In both orientation, legend gets too big to display. It can be displayed properly if and only if I could split legend into multiple columns. Like in first column I show 5 curves name and in second column I show next 5. I could not figure it either it is possible or not?
Any suggestion will be highly appreciated.
回答 (1 件)
Walter Roberson
2018 年 4 月 17 日
2 投票
Starting from R2018a you can use 'NumColumns', 2
https://www.mathworks.com/help/matlab/ref/legend.html#bt6r30y
2 件のコメント
Namira
2018 年 4 月 17 日
Walter Roberson
2018 年 4 月 17 日
It is new in R2018a. For the version you are using see https://www.mathworks.com/matlabcentral/fileexchange/31092-legendflex-m--a-more-flexible--customizable-legend
カテゴリ
ヘルプ センター および File Exchange で Legend についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!