How do I add a legend to uiaxes in Application Designer?
조회 수: 49 (최근 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!