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
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.
P_L
P_L 2019 年 2 月 11 日
Thank you!! Yes that was exactly what I wanted :)

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

 採用された回答

Star Strider
Star Strider 2019 年 2 月 11 日

0 投票

Try this:
figure
plot(rand(1,10), rand(1,10), 'p')
set(gca, 'Color',[1 0.92 0.8])

2 件のコメント

P_L
P_L 2019 年 2 月 11 日
Many thanks :)
Star Strider
Star Strider 2019 年 2 月 11 日
As always, my pleasure!

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

その他の回答 (0 件)

カテゴリ

質問済み:

P_L
2019 年 2 月 11 日

コメント済み:

2019 年 2 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by