MATLAB Answers

I want to change the background value of figure to white.

조회 수: 67(최근 30일)
YongHyun
YongHyun 26 Apr 2016
편집: Kevin Moerman 26 Apr 2016
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
Adam 26 Apr 2016
Isn't the background already white? I'm not sure I understand what you are asking to do.

댓글을 달려면 로그인하십시오.

답변(1개)

Kevin Moerman
Kevin Moerman 26 Apr 2016
편집: Kevin Moerman 26 Apr 2016
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

  댓글 수: 0

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by