필터 지우기
필터 지우기

Multi column legend in matlab plot

조회 수: 183 (최근 30일)
Sudhir Rai
Sudhir Rai 2023년 6월 14일
댓글: Sudhir Rai 2023년 6월 22일
How can i set multicolumn and row legen in matlab R2016a,.
I could not find simple way to do it.
  댓글 수: 1
Adam Danz
Adam Danz 2023년 6월 15일
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')

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

채택된 답변

dpb
dpb 2023년 6월 14일
  댓글 수: 7
dpb
dpb 2023년 6월 15일
Things like this I put into a special directory created and added to the MATLABPATH so will always be available regardless of the current working directory for project files. I find that structure works best.
Sudhir Rai
Sudhir Rai 2023년 6월 22일
ok thanks................
But how can I change legend features like make it bold or change size in gridlegend?

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

추가 답변 (0개)

카테고리

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