numColumns Property in legend
39 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I've got the need to arrange my legend into two columns. Luckily, I found matlab has the built-in method to do it.
However, as the image shows, even the example given by MATLAB does not work here. No matter I use the paired value set as legend({}, 'NumColumns', 2) or I use the dot notation as lgd = legend({}), and then lgd.NumColumns = 2.
I wonder what's the matter. Is this properties cut in recent version or is there something wrong?
Thanks a lot

Réponses (1)
Rik
le 25 Mar 2018
For those not on R2018a, there is a FEX submission that should provide the same functionality: columnlegend
1 commentaire
Golan Bel
le 24 Oct 2018
It does not provide the same functionality as it does not allow to set the font properties nor many other tweaks.
Voir également
Catégories
En savoir plus sur Legend dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!