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

270 Ansichten (letzte 30 Tage)
YongHyun
YongHyun am 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 Kommentar
Adam
Adam am 26 Apr. 2016
Isn't the background already white? I'm not sure I understand what you are asking to do.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Kevin Moerman
Kevin Moerman am 26 Apr. 2016
Bearbeitet: Kevin Moerman am 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
  1 Kommentar
Natasha Kovacevic
Natasha Kovacevic am 19 Jun. 2022
Use gcf to get handle of your current figure, then set figure color to white:
set(gcf,'Color','w');

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Orange finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by