Search This Blog

Saturday, July 2, 2011

Polar Graphs- Butterfly plot



from pylab import*
theta=linspace(0,8*pi,1000)
r=exp(sin(theta))-2*cos(4*theta)+sin((2*theta-pi)/24.0)
#r=cos(5*theta)*cos(5*theta)+sin(3*theta)+0.3
figure(1,figsize=(10,10))
polar(theta,r,'red')
show()

No comments:

Post a Comment