Re: [Tutor] problem in ploting cylinders with different colour.

2012-02-14 Thread Steven D'Aprano
Debashish Saha wrote: TypeError: grid_source() takes exactly 3 arguments (4 given) Is this error not clear enough? The function expects 3 arguments, you have given it 4. You need to give one fewer. The only tricky thing to remember is that when you have a method, one argument is the autom

[Tutor] problem in ploting cylinders with different colour.

2012-02-14 Thread Debashish Saha
import numpy from enthought.mayavi import mlab #def test_mesh(): #"""A very pretty picture of spherical harmonics translated from #the octaviz example.""" for r in range (1,5): print r pi = numpy.pi cos = numpy.cos sin = numpy.sin dphi, dtheta, dz = pi/250.0, pi/250.0, 0