Revision: 8862 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8862&view=rev Author: jswhit Date: 2010-12-29 21:43:26 +0000 (Wed, 29 Dec 2010)
Log Message: ----------- add some more projections, label parallels and meridians. Modified Paths: -------------- trunk/toolkits/basemap/examples/plot_tissot.py Modified: trunk/toolkits/basemap/examples/plot_tissot.py =================================================================== --- trunk/toolkits/basemap/examples/plot_tissot.py 2010-12-29 19:18:24 UTC (rev 8861) +++ trunk/toolkits/basemap/examples/plot_tissot.py 2010-12-29 21:43:26 UTC (rev 8862) @@ -25,9 +25,11 @@ m5 = Basemap(lon_0=270,lat_0=90,boundinglat=10,projection='nplaea') m6 = Basemap(lon_0=0,projection='moll') m7 = Basemap(lon_0=0,projection='robin') -m8 = Basemap(lon_0=0,projection='mbtfpq') +m8 = Basemap(lon_0=0,projection='hammer') +m9 = Basemap(lon_0=0,projection='mbtfpq') +m10 = Basemap(lon_0=270,lat_0=90,boundinglat=10,projection='npaeqd') -for m in [m1,m2,m3,m4,m5,m6,m7,m8]: +for m in [m1,m2,m3,m4,m5,m6,m7,m8,m9,m10]: # make a new figure. fig = plt.figure() # draw "circles" at specified longitudes and latitudes. @@ -35,8 +37,8 @@ for meridian in range(-165,166,30): poly = m.tissot(meridian,parallel,6,100,facecolor='green',zorder=10,alpha=0.5) # draw meridians and parallels. - m.drawparallels(np.arange(-60,61,30)) - m.drawmeridians(np.arange(-180,180,60)) + m.drawparallels(np.arange(-60,61,30),labels=[1,0,0,0]) + m.drawmeridians(np.arange(-180,180,60),labels=[0,0,0,1]) # draw coastlines, fill continents, plot title. m.drawcoastlines() m.drawmapboundary(fill_color='aqua') This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins