Saving Matlab figure(Imagesc) to JPG without White borders
19 次查看(过去 30 天)
显示 更早的评论
Hi,
I am using imagesc to plot color maps in matlab. While saving as JPG and Figuire it gives white space around the image. Is it possible to save without white space?
imagesc(Subject_Assist_Quest);
set(gca,'YDir','normal')
axis off
3 个评论
Elinor Kath
2021-3-16
When I try this I get: "Warning: Background transparency is not supported; using white instead. " So far I haven't found a workaround.
Image Analyst
2021-3-16
You can ignore the warning. Is white not OK? Why are you having transparent pixels anyway?
采纳的回答
更多回答(1 个)
Image Analyst
2018-12-20
Yes, use imwrite:
imwrite(Subject_Assist_Quest, filename);
Do not save image analysis images as JPG or you'll be sorry. Use PNG.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!