How to Set Plot Background Color
11 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Yamina chbak
il 30 Lug 2021
Commentato: Yamina chbak
il 30 Lug 2021
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 Commenti
Risposta accettata
Yongjian Feng
il 30 Lug 2021
Instead of
plot(x, y)
try
area(x, y)
3 Commenti
Yongjian Feng
il 30 Lug 2021
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-');
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Line Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!