is it possible to change color of figure ?

61 views (last 30 days)
Dear Matlab figure expert,
I am trying to change the figure color with
fig.color='blue' % i want to change its background color
I am getting result like this
Unbenannt.PNG
however i want to change in this form as i did it manually:
template_b.jpg
Can anybody guide me?
Thank you

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 16 Oct 2019
a=figure;
a.Color='blue';
b=axes;
b.Color='red';

More Answers (0)

Categories

Find more on Line Plots in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!