フィルターのクリア

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

62 ビュー (過去 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 Center および File ExchangeLegend についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by