Multi column legend in matlab plot

172 次查看(过去 30 天)
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