How to Set Plot Background Color

27 ビュー (過去 30 日間)
Yamina chbak
Yamina chbak 2021 年 7 月 30 日
コメント済み: Yamina chbak 2021 年 7 月 30 日
Hi, I would like to set the backgrourd color of my figures, for example i have
and i want like that
it's possible ?? thanks.

採用された回答

Yongjian Feng
Yongjian Feng 2021 年 7 月 30 日
Instead of
plot(x, y)
try
area(x, y)
  3 件のコメント
Yongjian Feng
Yongjian Feng 2021 年 7 月 30 日
Try the following combinations. Get rid the ones you don't wnat.
ar=area(x, h);
hold on
ar.EdgeColor = 'red';
ar.FaceColor = 'green';
ar2 = area(x, g);
ar2.EdgeColor = 'blue';
ar2.FaceColor = 'yellow';
plot(x, h, 'k-');
plot(x, g, 'bo-');
Yamina chbak
Yamina chbak 2021 年 7 月 30 日
Thanks youuu @Yongjian Feng you explain me very well ! it's exactly what i want. thanks you again.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by