How can I plot scatterplot in the UIAxes of App Designer
20 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Kevin Holly
on 11 Nov 2021
Edited: Kevin Holly
on 11 Nov 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 Comments
More Answers (0)
See Also
Categories
Find more on Scatter Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!