Modify plot in app designer
19 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Beñat Estala
el 16 de Nov. de 2018
Respondida: Cris LaPierre
el 16 de Nov. de 2018
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!
0 comentarios
Respuesta aceptada
Cris LaPierre
el 16 de Nov. de 2018
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Line Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!