How to position the legend such that it is not over the plots and also how to make horizontal legends?

14 ビュー (過去 30 日間)
I am plotting mxn matrix (y-axis) with the mx1 vector (x-axis). However, the plot just looks bad for cases of more than 10 legends. Is there a way that I can align the legends above the plots, and also if I can create horizontal legends occupying the available horizontal space according to the plot? The plot will have unknown n variables, so it becomes difficult to align the legends each time I create a new plot.

採用された回答

Adam Danz
Adam Danz 2020 年 11 月 16 日
編集済み: Adam Danz 2020 年 11 月 17 日
See the location, orientation, and NumColumns options

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLegend についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by