How do I add a legend to uiaxes in Application Designer?

조회 수: 73 (최근 30일)
morningStar
morningStar 2017년 3월 20일
댓글: garima 2020년 4월 19일
Hello, I was not able to add a legend to uiaxes in appdesigner. How do we do that? Thanks!

채택된 답변

danbro
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
morningStar
morningStar 2017년 4월 3일
Thanks Daniel!
garima
garima 2020년 4월 19일
hi Daneil,
Do you have any idea for R2016a how to add a legend in app designer?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Legend에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by