Effacer les filtres
Effacer les filtres

Multi column legend in matlab plot

183 vues (au cours des 30 derniers jours)
Sudhir Rai
Sudhir Rai le 14 Juin 2023
Commenté : Sudhir Rai le 22 Juin 2023
How can i set multicolumn and row legen in matlab R2016a,.
I could not find simple way to do it.
  1 commentaire
Adam Danz
Adam Danz le 15 Juin 2023
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')

Connectez-vous pour commenter.

Réponse acceptée

dpb
dpb le 14 Juin 2023
  7 commentaires
dpb
dpb le 15 Juin 2023
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 le 22 Juin 2023
ok thanks................
But how can I change legend features like make it bold or change size in gridlegend?

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by