Hi Alan,

Thanks and it works for y and x but i guess i dont know how to shapet Z
("total size of  new array must be unchanged")

Overall i just dont get it how to calcuate the nlons and nlats fro Z.


yre = np.reshape(lats,nlats) 
xre = np.reshape(lons,nlons) 

print yre
print xre

zre = np.reshape(values,(nlats,nlons)).transpose() 
CT = plt.contourf(xre, yre, zre,58,cmap=plt.cm.jet)

cbar = plt.colorbar()


plt.show()





AlanIsaac wrote:
> 
> On 5/17/2009 10:21 AM Linda_swe apparently wrote:
>> atlest give me a hint...
> 
> The hint:
> 
>> error:list object has no attribute reshape
> 
> Listen to Python: all the info is there.
> A list is not a numpy array.
> Don't treat it like one.
> 
> However you can do:
> numpy.reshape(mylist, myshape)
> 
> Alan Isaac
> 
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables 
> unlimited royalty-free distribution of the report engine 
> for externally facing server and web deployment. 
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Colormap-using-%28UV%29coordinates-from-file-tp23572972p23584266.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to