Revision: 6040 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6040&view=rev Author: jswhit Date: 2008-08-18 11:44:30 +0000 (Mon, 18 Aug 2008)
Log Message: ----------- minor tweaks Modified Paths: -------------- trunk/toolkits/basemap/examples/cubed_sphere.py Modified: trunk/toolkits/basemap/examples/cubed_sphere.py =================================================================== --- trunk/toolkits/basemap/examples/cubed_sphere.py 2008-08-17 22:56:20 UTC (rev 6039) +++ trunk/toolkits/basemap/examples/cubed_sphere.py 2008-08-18 11:44:30 UTC (rev 6040) @@ -6,7 +6,7 @@ # face with gnomonic projection. # http://www.progonos.com/furuti/MapProj/Normal/ProjPoly/Foldout/Cube/cube.html # suitable for cutting and folding. -fig = plt.figure(figsize=(8,6)) +fig = plt.figure(figsize=(10,7.5)) fig.subplots_adjust(bottom=0, left=0, right=1, top=1, wspace=0, hspace=0) rsphere = 6370997. width = 2.*rsphere; height=width @@ -14,20 +14,20 @@ for lat_0 in [90,0,-90]: for ncol in range(0,4): npanel = npanel + 1 - if lat_0 != 0 and ncol != 1: continue - ax=fig.add_subplot(3,4,npanel) - ax.set_frame_on(False) - lon_0=225 + 90*(ncol+1) - 45 - m = Basemap(width=width,height=height,resolution=None,\ - projection='gnom',lon_0=lon_0,lat_0=lat_0,\ - rsphere=rsphere) - m.bluemarble() - m.drawparallels(np.arange(-90,91,10),color='0.5') - m.drawmeridians(np.arange(0,360,10),color='0.5') - #m.drawlsmask(ocean_color='aqua',land_color='coral') - #m.drawparallels(np.arange(-90,91,10)) - #m.drawmeridians(np.arange(0,360,10)) -fig.text(0.625,0.75,\ - 'World Map on a Cube\n Gnomonic Projection',\ - fontsize=14) + if lat_0 == 0 or ncol == 1: + ax=fig.add_subplot(3,4,npanel) + ax.set_frame_on(False) + lon_0=225 + 90*(ncol+1) - 45 + m = Basemap(width=width,height=height,resolution=None,\ + projection='gnom',lon_0=lon_0,lat_0=lat_0,\ + rsphere=rsphere) + m.bluemarble() + m.drawparallels(np.arange(-90,91,10),color='0.5') + m.drawmeridians(np.arange(0,360,10),color='0.5') + #m.drawlsmask(ocean_color='aqua',land_color='coral') + #m.drawparallels(np.arange(-90,91,10)) + #m.drawmeridians(np.arange(0,360,10)) +fig.text (0.625,0.75,\ + 'World Map on a Cube\n Gnomonic Projection',\ + fontsize=14) plt.show() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins