is it possible to change color of figure ?

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

 Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 16 Okt. 2019

1 Stimme

a=figure;
a.Color='blue';
b=axes;
b.Color='red';

Weitere Antworten (0)

Kategorien

Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange

Produkte

Tags

Gefragt:

am 16 Okt. 2019

Kommentiert:

am 16 Okt. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by