How can I plot scatterplot in the UIAxes of App Designer
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Kelvin
el 11 de Nov. de 2021
Comentada: GERARDO TAPIA
el 26 de Sept. de 2025 a las 22:14
I want to plot a scatterplot (from communications toolbox) onto a UIAxes created with App designer.
Scatterplot always opens a new figure, and scatterplot does not support the following syntax:
scatterplot(app.UIAxes, SignalofInterest)
Scatterplot does support
scatfig = scatterplot(__)
but I am not sure how I can place the scatfig handle into a UIAxes of app designer.
0 comentarios
Respuesta aceptada
Kevin Holly
el 11 de Nov. de 2021
Editada: Kevin Holly
el 11 de Nov. de 2021
App Designer uses uifigure. I found a way to move the scatterplot from the scatterplot figure to the uifigure.
handle = uifigure;
scatfig = scatterplot(rand(10,1),1,0,'b.')
scatfig.Children(2).Parent = handle %Moves axes from scatterplot figure to uifigure window
You can change the scatterplot axes properies through
handle.Children
0 comentarios
Más respuestas (1)
GERARDO TAPIA
hace alrededor de 3 horas
Hi May the Lord Jesus Christ bless you in a mighty way
use the plot in the following way
plot(app.UIAxes,Name,'-*','LineWidth',2,'Color','#f29c07');
where name is your data like y
there you go
1 comentario
GERARDO TAPIA
hace alrededor de 3 horas
plot(app.UIAxesSize,AreaSamp,'-*','LineWidth',2,'Color','#f29c07');
Ver también
Categorías
Más información sobre Annotations 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!