MATLAB Answers

0

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

Asked by YongHyun on 26 Apr 2016
Latest activity Edited by Kevin Moerman on 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 Comment

Isn't the background already white? I'm not sure I understand what you are asking to do.

Sign in to comment.

1 Answer

Answer by Kevin Moerman on 26 Apr 2016
Edited by Kevin Moerman on 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 Comments

Sign in to comment.