Transparent figure window for real-time projection
3 views (last 30 days)
Show older comments
Eli Syne on 11 Jan 2023
Commented: Eli Syne on 13 Jan 2023
Hi, I am running real-time integration between Matlab and my hardware setup in an augmented reality system, and I would like to project my Matlab generated figure with a transparent window background (preserving only the image). So far, I have come across codes that allow us to set transparent background when saving the figures (e.g. exportgraphics) - maybe I haven't fonud the right keyword for the search. I tried using the 'set' command (i.e. set(gca,'BackgroundColor','none')) but I haven't been able to get that working.
Does anyone know a way to make the figure window background transparent or completely hide it (including the title, menu bar and figure toolbar) straight from the code, showing only the image when the figure is generated?
Thank you for your help!
DGM on 11 Jan 2023
Edited: DGM on 11 Jan 2023
Last I heard, the answer was no.
Not unless you're running R2013a or older, with an appropriately old version of Java, and want to try some undocumented/unsupported things.
Find more on Printing and Saving 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!