MATLAB Answers

app designer UIAxes plot

22 views (last 30 days)
lenwen lin
lenwen lin on 29 Apr 2020
Edited: Adam Danz on 4 May 2020
app.Image.ImageSource = data;
hold(uiaxes,'on')
plot....
the code is above, I want to add a plot in the image, but how to determine the "UIAxes" ?
for help
thank you

  1 Comment

Geoff Hayes
Geoff Hayes on 29 Apr 2020
lenwen - wouldn't you have added an uiaxes to your app and perhaps accessible via app.UiAxes?

Sign in to comment.

Answers (1)

Adam Danz
Adam Danz on 29 Apr 2020
Edited: Adam Danz on 4 May 2020
You have the right idea to specify an axis handle but it looks like you're not using the handle.
uiax = uiaxes(); % Create the UIAxes, store the handle.
hold(uiax, 'on') % specify the UIAxes
plot(uiax, x, y) % specify the UIAxes

  0 Comments

Sign in to comment.


Translated by