Re: [Matplotlib-users] Basemap, Mercator Projection and pcolor

2008-03-11 Thread Rich Fought
> Rich: What are X and Y set to? They should be the map projection > coorindates of the grid. If they are latitudes and longitudes, this > will work for 'cyl' but not 'merc'. For 'merc', you must convert the > lats and lons to x and y using > > x, y = mp(lon, lat) > > -Jeff > Thanks Jeff,

Re: [Matplotlib-users] Basemap, Mercator Projection and pcolor

2008-03-11 Thread Jeff Whitaker
Rich Fought wrote: > 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 simp

[Matplotlib-users] Basemap, Mercator Projection and pcolor

2008-03-11 Thread Rich Fought
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 m