From: John H. <jdh...@ac...> - 2004-05-11 12:03:51
|
>>>>> "rod" == rod holland <rh...@st...> writes: rod> lines 1123 - 1126 in axes.py should be changed at c = C[i,j] rod> to the following. As it now stands a floating point number rod> from a numeric array will generally register as type array rod> rather than type float and be rejected as not iterable when rod> later tested. rod> for i in range(Nx-1): for j in range(Ny-1): rod> c = C[i][j] Sorry to be dense, but even after your detailed explanation I don't really understand why you are getting an error. * Are you passing a numerix array of floats for C? If so C[i,j] should return the float we want * What do you mean will be "rejected as not iterable when later tested"? I don't see any tests for iterable in poclor. * What is it you are doing differently that causes pcolor to fail for you but not for the other uses, eg in pcolor_demo.py? If you could give me a little more information to clear up these questions that would be helpful. Also, if you could post the traceback you are getting that might help. Thanks! John Hunter |