changing color canvas when saving *.jpeg image

*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

 採用された回答

Mischa Kim
Mischa Kim 2014 年 1 月 29 日
編集済み: Mischa Kim 2014 年 1 月 29 日

0 投票

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 件のコメント

Meionly
Meionly 2014 年 1 月 29 日
編集済み: Meionly 2014 年 1 月 29 日
Hi Mischa, thanks for your answer
it did works, but it's going to be a super hard work, if i have do it on my 100 plot, one by one. :-S i tried to use
whitebg([1 1 1]);
but it doesn't work, any other idea how to code this?
BR
-mei
Mischa Kim
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 件)

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

質問済み:

2014 年 1 月 29 日

コメント済み:

2014 年 1 月 30 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by