Re: [Matplotlib-users] Colormap using (UV)coordinates from file

2009-05-17 Thread Linda_swe
t 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

Re: [Matplotlib-users] Colormap using (UV)coordinates from file

2009-05-17 Thread Linda_swe
Why dont anyone answer me??? atlest give me a hint... Ok, so i want to use the my csv as input and then plot the contour. I have the follwing code but gives error:list object has no attribute reshape is using list diffrent than using numpys loadtext and then into variables ??? from matplotli

Re: [Matplotlib-users] Colormap using (UV)coordinates from file

2009-05-16 Thread Linda_swe
Ok, but can anyone please help me with how to find nlons and nlats dynamically.I need to do this becuase I have no idea on how many records the datasets contains. i tried user Timmes idea (but it aint working,not even starting): from matplotlib.mlab import load import matplotlib.pyplot as plt i

Re: [Matplotlib-users] Colormap using (UV)coordinates from file

2009-05-16 Thread Linda_swe
This one is from Jeff here at the forum and it does work. But the smoothing of the color values inbetween the countour is not so good. How to improve that ? Also,i am still searching for a load .csv example to use with pcolor or countour. from matplotlib.mlab import load import matplotlib.pyplo

[Matplotlib-users] Colormap using (UV)coordinates from file

2009-05-16 Thread Linda_swe
Hi all, I have been using matplotlib for about 5 hours :-/ so please forgive me if the question has been asked several times (and i have been trying to find it in the forum) But i downloaded phyton(xy) and from there i found the poormans_countour and some pcolor scripts. I think this is what i n