Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem with style/appearance of polar plot

84 views
Skip to first unread message

schuffe

unread,
Dec 2, 2009, 3:46:14 PM12/2/09
to
Hi,
i am trying to do multiple polar plots, they look like
phi=[0:2*%pi/100:2*%pi];
subplot(2,3,1)
x=(sin(phi)^2)^.5;
y=2*(sin(phi+0)^2)^.5;
polarplot(phi,x,5);
subplot(2,3,2)
polarplot(phi-45,y,3)

the plots come out with different diameters. (all plots with
maximum at phi=0 come out with same size, plot with
maximum at phi=45deg is smaller). i would like
to have the diameter constant and automatic scaling
to match max of the plotted vector.

Any ideas??
Schuffe

Serge Steer

unread,
Dec 10, 2009, 12:20:52 PM12/10/09
to
schuffe a �crit :

This is clearly a bug due to the isoview managment (it can be made
clearer making the graphic window narrow.

Please find attached a new function for polarplot. it is named polar and
ressemble (from the syntax point of view to the plot function)

some examples

t= 0:.01:2*%pi;
clf();polar(sin(7*t),cos(8*t),'b')
clf();polar([sin(7*t') sin(6*t')],[cos(8*t') cos(8*t')])
clf();polar(sin(7*t'),cos(8*t'),'b',sin(6*t'),cos(8*t'),'--r')

function r=rho(t), r=3*sin(8*t)*cos(5*t),endfunction
clf();polar(t,rho,'-+r')

polar.sci
0 new messages