필터 지우기
필터 지우기

command for multicolumn Llegend

조회 수: 7 (최근 30일)
Namira
Namira 2018년 4월 17일
댓글: Walter Roberson 2018년 4월 17일
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
Walter Roberson 2018년 4월 17일

Starting from R2018a you can use 'NumColumns', 2

https://www.mathworks.com/help/matlab/ref/legend.html#bt6r30y

  댓글 수: 2
Namira
Namira 2018년 4월 17일
Thanks. I am using R2016b. When I try to use 'NumColumns', 2 it shows Unknown property: NumColumns.
Walter Roberson
Walter Roberson 2018년 4월 17일

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Legend에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by