I want to change the background value of figure to white.
1,061 ビュー (過去 30 日間)
古いコメントを表示
I've a figure like this (attached) and I want to change the background value of figure to white. The figure was generated by cloudPlot function below. http://www.mathworks.com/matlabcentral/fileexchange/23238-cloudplot
Thank you in advance.
1 件のコメント
Adam
2016 年 4 月 26 日
Isn't the background already white? I'm not sure I understand what you are asking to do.
採用された回答
その他の回答 (1 件)
Kevin Moerman
2016 年 4 月 26 日
編集済み: Kevin Moerman
2016 年 4 月 26 日
Perhaps this answers your question. Find where the figure is created in the code and replace by something like:
hf = figure; %Open figure and keep handle
hf=colordef(hf,'white'); %Set color scheme
hf.Color='w'; %Set background color of figure window
If instead of white you want black background and colorscheme, replace by 'black' and 'k', etc.
Kevin
2 件のコメント
Natasha Kovacevic
2022 年 6 月 19 日
Use gcf to get handle of your current figure, then set figure color to white:
set(gcf,'Color','w');
Adam Danz
2024 年 11 月 8 日 15:46
Note that colordef will be removed very soon.
hf = figure; %Open figure and keep handle
hf=colordef(hf,'white')
参考
カテゴリ
Help Center および File Exchange で Colormaps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!