## matplotlib-users

 [Matplotlib-users] Basemap cyclic longitudes From: Johnny Lin - 2007-06-12 18:34:46 ```Hi all, I'm creating a cylindrical map, global in longitude and centered around 180 and the equator, using the following code: map = Basemap( projection='cyl', resolution='l' , llcrnrlon=0, urcrnrlon=360 , llcrnrlat=-76.875, urcrnrlat=76.875 , lon_0=180, lat_0=0 ) map.drawmeridians(pylab.arange(0,361,45), labels=[0,0,0,1]) The result is a map with labels of 0, 45E, 90E, ... 45W, but without a label at 0 (i.e. 360). Does anyone know how to make that label come up? I'm running Python 2.4 in Mac OSX 10.4, with matplotlib 0.90.1 and basemap 0.9.5. Thanks much! Best, -Johnny -- ------------------------------------------- Johnny Lin | http://www.johnny-lin.com North Park University | Physics Department ------------------------------------------- ```
 Re: [Matplotlib-users] Basemap cyclic longitudes From: Jeff Whitaker - 2007-06-13 08:01:51 ```On Tue, 12 Jun 2007 13:34:35 -0500, "Johnny Lin" said: > Hi all, > > I'm creating a cylindrical map, global in longitude and centered around > 180 and the equator, using the following code: > > map = Basemap( projection='cyl', resolution='l' > , llcrnrlon=0, urcrnrlon=360 > , llcrnrlat=-76.875, urcrnrlat=76.875 > , lon_0=180, lat_0=0 ) > map.drawmeridians(pylab.arange(0,361,45), labels=[0,0,0,1]) > > The result is a map with labels of 0, 45E, 90E, ... 45W, but without > a label at 0 (i.e. 360). Does anyone know how to make that label > come up? I'm running Python 2.4 in Mac OSX 10.4, with matplotlib > 0.90.1 and basemap 0.9.5. > > Thanks much! > > Best, > -Johnny > -- Johnny: The labels are drawn from 180E to 180W, and each longitude is only labelled once. That means you don't get a the wraparound longitude labelled at both the left and right side of the plot Sorry! -Jeff ------ Jeffrey S. Whitaker Phone: (303)497-6313 FAX: (303)497-6449 NOAA/OAR/CDC R/CDC1 325 Broadway, Boulder, CO, USA 80305-3328 http://www.cdc.noaa.gov/people/jeffrey.s.whitaker ```