How can I plot scatterplot in the UIAxes of App Designer

조회 수: 19 (최근 30일)
Kelvin
Kelvin 2021년 11월 11일
편집: Kevin Holly 2021년 11월 11일
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.

채택된 답변

Kevin Holly
Kevin Holly 2021년 11월 11일
편집: Kevin Holly 2021년 11월 11일
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개)

카테고리

Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by