Polar plots of radar scans (OT)

Hi,

r,t = ogrid[0:pi:deltatheta, 0:2*pi:deltatheta]

doesn't work for me...

running

···

------------------------------------------------------------
from scipy import *
from pylab import *

deltatheta = 2.*pi/100.
r,t=ogrid[0:pi:deltatheta, 0:2.*pi:deltatheta]
Z = sin(r)*sin(3.*t)
X = r*cos(t)
Y = r*sin(t)
figure(figsize=(8,8))
cs = contourf(X, Y, Z)
title('Simple polar contour plot')
show()
------------------------------------------------------------

Returns me the following:

Editing... done. Executing edited code...
---------------------------------------------------------------------------
exceptions.TypeError Traceback (most recent
call last)

/media/exchange/Python/bsp_polar02.py
      6 deltatheta = 2.*pi/100.
      7 r,t=ogrid[0:pi:deltatheta, 0:2.*pi:deltatheta]
----> 8 Z = sin(r)*sin(3.*t)
      9 X = r*cos(t)
     10 Y = r*sin(t)

TypeError: function not supported for the spacesaver array with the largest
typecode.

Cheers

Jens Brandenburg

typecode.

This is an error from old Numeric. I'm still not sure why you are getting it as this works for me using old scipy.

-Travis