I want to change the background value of figure to white.
조회 수: 1,052 (최근 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!