How to Set Plot Background Color
조회 수: 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.
댓글 수: 0
채택된 답변
Yongjian Feng
2021년 7월 30일
Instead of
plot(x, y)
try
area(x, y)
댓글 수: 3
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-');
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!