How do I add a legend to uiaxes in Application Designer?
46 次查看(过去 30 天)
显示 更早的评论
Hello, I was not able to add a legend to uiaxes in appdesigner. How do we do that? Thanks!
0 个评论
采纳的回答
danbro
2017-3-28
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Legend 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!