numColumns Property in legend
Mostrar comentarios más antiguos
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

3 comentarios
dpb
el 23 de Mzo. de 2018
Doc doesn't indicate which release was introduced with; it's not in R2016b here; which release are you on?
Linda de Man
el 25 de Mzo. de 2018
i`m on R2017b version and it doesn`t work
Star Strider
el 25 de Mzo. de 2018
It’s new in R2018a.
Respuestas (1)
Rik
el 25 de Mzo. de 2018
1 voto
For those not on R2018a, there is a FEX submission that should provide the same functionality: columnlegend
1 comentario
Golan Bel
el 24 de Oct. de 2018
It does not provide the same functionality as it does not allow to set the font properties nor many other tweaks.
Categorías
Más información sobre Legend en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!