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

조회 수: 6 (최근 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 CenterFile Exchange에서 Legend에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by