From: Petra on
Hi,
may be it is a stupid question. But I do not know the answer.
Is there a way to change the " 0 45 90 180 ..." labels in a polar plot to lets say "west east north ..."?

I do not know how to use the tick command for a polar plot.

Thanks for your help
From: us on
"Petra " <e.petra(a)gmx.de> wrote in message <hi87v6$q6u$1(a)fred.mathworks.com>...
> Hi,
> may be it is a stupid question. But I do not know the answer.
> Is there a way to change the " 0 45 90 180 ..." labels in a polar plot to lets say "west east north ..."?
>
> I do not know how to use the tick command for a polar plot.
>
> Thanks for your help

one of the solutions is outlined below
- also, look at the reply to your other OP

polar([1,2,3],[4,5,6]);
ph=findall(gca,'type','text');
ps=get(ph,'string');
disp([num2cell(1:numel(ps)).',ps]);
% see the content's indices...
%{
%}
ps(1:15)={''};
ps([1,2,3,4,5,10,11])={
'YLABEL'
'XLABEL'
'TITLE'
'east'
'west'
'south'
'north'
};
set(ph,{'string'},ps);
ps=get(ph,'fontweight');
ps(1:3)={'bold'};
set(ph,{'fontweight'},ps);
ps=get(ph,'position');
ps{1}(1)=-8;
set(ph,{'position'},ps);

us
 | 
Pages: 1
Prev: Transformer simulation in Simulink
Next: Mex error