My failed attempt should actually read:

### Failed attempt

r = np.linspace(0, 10, 100)
theta = np.linspace(0, 2*np.pi, 100)
rr, tt = np.meshgrid(r, theta)

x, y = pol_to_cart(r, theta) # simple conversion function between 
coordinate systems
xx, yy = pol_to_cart(rr, tt) # simple conversion function between 
coordinate systems

zz = xx**2 + yy**2

self.surf = gl.GLSurfacePlotItem(x = x, y = y, z = zz, shader = 'shaded')

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/50c3a3d3-9c69-40cc-abe7-af5d2a4746fc%40googlegroups.com.

Reply via email to