[Matplotlib-users] Basemap, Mercator Projection and pcolor

2008年3月11日 08:54:34 -0700

Hi,
I've successfully plotted gridded data on a basemap "cyl" projection 
using pcolor:
 mp = Basemap(projection="cyl", resolution="l", llcrnrlon=0.0, 
urcrnrlon=30.0, llcrnrlat=-5.0, urcrnrlat=5.0)
 pc = mp.pcolor(X, Y, zvalsm, cmap=cm.jet)
However, if I simply I change the projection type to merc, adding 
appropriate lat_ts, I get the projection but the pcolor fails to plot on 
it:
 mp = Basemap(projection="merc", lat_ts=0.0, resolution="l", 
llcrnrlon=0.0, urcrnrlon=30.0, llcrnrlat=-5.0, urcrnrlat=5.0)'
 pc = mp.pcolor(X, Y, zvalsm, cmap=cm.jet)
Any ideas? I am using matplotlib 0.91.2 and basemap 0.9.9 on CentOS 4.0 
with Python 2.3.
Thanks,
Rich
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to