How to make trasparent the background of the static text.
Show older comments
Hi guys, i'm working on GUIDE and i want to make transparent the background of the static text, is it posible?

Accepted Answer
More Answers (1)
xingxingcui
on 30 Aug 2021
Edited: xingxingcui
on 27 Apr 2024
x = 0:.1:2*pi;
y = sin(x);
figure;
plot(x,y,'LineWidth',4);
text(1,0,'Transparent background image','color','red')
% save to transparented image
set(gcf, 'color', 'none');
set(gca, 'color', 'none');
exportgraphics(gcf,'transparent.eps',... % since R2020a
'ContentType','vector',...
'BackgroundColor','none')
-------------------------Off-topic interlude, 2024-------------------------------
I am currently looking for a job in the field of CV algorithm development, based in Shenzhen, Guangdong, China,or a remote support position. I would be very grateful if anyone is willing to offer me a job or make a recommendation. My preliminary resume can be found at: https://cuixing158.github.io/about/ . Thank you!
Email: cuixingxing150@gmail.com
1 Comment
Niv Cohen
on 19 Mar 2022
you can simply use FaceAlpha = 0;
Categories
Find more on Graphics Object Properties 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!