send image to background to visible axes

I have a picture in appdesigner and I put some buttons on it. By pressing the buttons I want a plot is shown. However the plot axes is behind the picture and not visible. How can I move the image to background when the button is pressed and the plot will be shown??

Answers (1)

Voss
Voss on 6 Feb 2025
axes and uiaxes objects always appear behind other UI components including uiimages, so there is no way to move the uiimage behind the axes.
Perhaps one way to achieve the effect you want is to use an image object (which exists in the axes) instead of a uiimage object.

4 Comments

check this video
he did put a axes in the picture! I don't know how.
for mine it is not working
Voss
Voss on 7 Feb 2025
Edited: Voss on 7 Feb 2025
I'm unable to reproduce having an axes appear over a uiimage, using R2023b.
It's not clear to me why the guy in the video's version of MATLAB behaves differently than mine, yours, or the people who've commented on the video. It's also not clear to me what version of MATLAB he uses in the video.
The best I can suggest is to put the axes in a panel, as in the attached app.
Thank you i tried panel and it was exactly the one I needed. :)
You're welcome! Any other questions, let me know. Otherwise, please "Accept" this answer. Thanks!

Sign in to comment.

Products

Release

R2024b

Asked:

on 6 Feb 2025

Commented:

on 10 Feb 2025

Community Treasure Hunt

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

Start Hunting!