Unwanted black background on a figure

Whenever I run this code, I always get a black background on a figure, but I need it to be white.
load noisdopp; x = noisdopp;
wpt = wpdec(x,3,'db1','shannon');
plot(wpt);
I have no idea why it's like this.

 Accepted Answer

Matt J
Matt J on 9 Jun 2023
Edited: Matt J on 9 Jun 2023
I have no idea why it's like this.
That seems to be the default color scheme, judging from this doc page,
You can change the axes background color to white by doing,
set(axHandle, 'Color','white')
but the yellow lettering in the left hand subplot will be difficult to read on a white background.

More Answers (1)

This might be too late, but if you go to Settings>Appearance there is a "Desktop Theme" and a "Figure Theme" farther down the page.

Categories

Find more on Wavelet Toolbox in Help Center and File Exchange

Products

Release

R2023a

Asked:

on 8 Jun 2023

Answered:

on 21 Jan 2026

Community Treasure Hunt

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

Start Hunting!