Ovality of a perturbed circular path

Hi all,

I would like to visualize the ovality of a perturbed
circular path by a polar plot.
How can I improve the view wrt to scaling and ticks ?

from pylab import linspace, polar, xticks, yticks, show, savefig, subplot, figure
from numpy.random import rand
from numpy import ones, exp, pi, r_
theta = linspace(0.,2*pi,25)
r = 20.*ones(24)
r = r_[r,r[0]]
noise = 2.*rand(24)-ones(24)
noise = r_[noise,noise[0]]
figure(1)
polar(theta,(r+noise))
figure(2)
polar(theta,(r+noise)/r)
show()

Any pointer would be appreciated.

Nils

Is:

from pylab import ylim, ytics

figure(2)
polar(theta,(r+noise)/r)
ylim(0, 2)
yticks(arange(0, 2, 0.25))
show()

The kind of thing you're after?

Cheers,

Matt

ยทยทยท

On Wed, Nov 26, 2008 at 7:11 AM, Nils Wagner <nwagner@...1052...> wrote:

Hi all,

I would like to visualize the ovality of a perturbed
circular path by a polar plot.
How can I improve the view wrt to scaling and ticks ?

--
Matt Foster | http://hackerific.net