Fill my plot with a colour
25 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi I have made the attached image but want to fill the plot inside with the colour: [1 0.92 0.8].
Does anyone know how to do this?
Many thanks
2 Commenti
Geoff Hayes
il 11 Feb 2019
harpreet - which "plot inside with colour..."? Do you mean that you want to change the white background to [1 0.92 0.8]? If so, then you would do something like
set(gca,'Color',[1 0.92 0.8])
where gca gets the current axes.
Risposta accettata
Star Strider
il 11 Feb 2019
Try this:
figure
plot(rand(1,10), rand(1,10), 'p')
set(gca, 'Color',[1 0.92 0.8])
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Annotations 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!