Modify plot in app designer

23 ビュー (過去 30 日間)
Beñat Estala
Beñat Estala 2018 年 11 月 16 日
回答済み: Cris LaPierre 2018 年 11 月 16 日
Hi,
I want to give names to some graphs in a plot, and add a legend for them in app designer, but app designer doesn't recognize the common functions for them. Also I want to change the plot's name with each callback, is this possible?
I write this code in each callback:
plot(app.Plot, XYReferenceINT(:,1), 0*XYMeasureoffset(:,2),'-b','DisplayName','Measure')
title('Measure')
legend(h,'Location','NorthEastOutside')
Thanks for your help!

採用された回答

Cris LaPierre
Cris LaPierre 2018 年 11 月 16 日
You likely need to tell it which axes to add the title and legend to. Try
title(app.Plot,'Measure')
legend(app.Plot,h,'Location','NorthEastOutside')

その他の回答 (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