PNG as figure background
Show older comments
I am trying to generate a figure window with a saved PNG as the background. It will have a fluid simulation on top of it and all I want to do it have this saved PNG be the background. Similar to what set(gca,'Color', k) would do but instead of having the color I want to have it be a figure. Any thoughts?
Accepted Answer
More Answers (2)
Marijn Dekker
on 10 Dec 2019
4 votes
@Chad Greene your answer works, however instead of using -ylim you would want to use flip(ylim) for a general case :)
Image Analyst
on 24 Sep 2017
1 vote
See the Answer from MATLAB Support: https://www.mathworks.com/matlabcentral/answers/96023-how-do-i-add-a-background-image-to-my-gui-or-figure-window
Categories
Find more on Creating, Deleting, and Querying Graphics Objects 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!