Fill my plot with a colour
25 次查看(过去 30 天)
显示 更早的评论
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 个评论
Geoff Hayes
2019-2-11
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.
采纳的回答
Star Strider
2019-2-11
Try this:
figure
plot(rand(1,10), rand(1,10), 'p')
set(gca, 'Color',[1 0.92 0.8])
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!