How do I add a legend to uiaxes in Application Designer?
62 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
morningStar
am 20 Mär. 2017
Kommentiert: garima
am 19 Apr. 2020
Hello, I was not able to add a legend to uiaxes in appdesigner. How do we do that? Thanks!
0 Kommentare
Akzeptierte Antwort
danbro
am 28 Mär. 2017
It seems like this feature was enabled in the R2016b release. Documentation from MathWorks website: Graphic support in App designer
Something in the line of this worked fine for me: legend(app.plotUIaxes, 'first_label','second_label') assuming the name of your 2D axes component is app.plotUIaxes and you want to label two curves.
2 Kommentare
garima
am 19 Apr. 2020
hi Daneil,
Do you have any idea for R2016a how to add a legend in app designer?
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Legend finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!