From: Petra on
Hi,
I got this problem:
I do not know how to change the background color of a simple polar plot like:
polar(0,0)

I can only do this in the "Property Editor" of the figure by changing the "patch face".
But I do not know the syntax in the matlab code.

Is there any help outside?

Thank you
From: us on
"Petra " <e.petra(a)gmx.de> wrote in message <hi851h$kt0$1(a)fred.mathworks.com>...
> Hi,
> I got this problem:
> I do not know how to change the background color of a simple polar plot like:
> polar(0,0)
>
> I can only do this in the "Property Editor" of the figure by changing the "patch face".
> But I do not know the syntax in the matlab code.
>
> Is there any help outside?
>
> Thank you

one of the solutions

polar([1,2],[2,1]);
ph=findall(gca,'type','patch');
set(ph,'facecolor',[1,1,0],'edgecolor',[0,0,1],'linewidth',4);

us
From: Petra on
Tanks for your help

ph=findall(gca,'type','patch');

works perfectly