changing color canvas when saving *.jpeg image
2 次查看(过去 30 天)
显示 更早的评论
*Dear fellow matlabbers,
I tried to save a plot in *.jpeg format, but after i open the result, i always get grey color in the cannvas of my plots, anyone knows how to change it??
Thankyou :D
BR~
Mei
0 个评论
采纳的回答
Mischa Kim
2014-1-29
编辑:Mischa Kim
2014-1-29
Meionly, have you tried > File > Export Setup..., then chose > Rendering? Check "Custom color" and pick a color of your liking, e.g., r for red ( w for white). Hit [Apply to Figure] and then [Export] to .jpg.
2 个评论
Mischa Kim
2014-1-30
OK. In this case you would set up a batch job programmatically, where you open the figures and then use
set(gcf,'color','w');
print(gcf, '-djpeg', 'myFilename.jpg')
to set the background color and export the current figure (gcf) to .jpg.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!