From: <js...@us...> - 2007-11-01 14:46:55
|
Revision: 4089 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4089&view=rev Author: jswhit Date: 2007-11-01 07:46:46 -0700 (Thu, 01 Nov 2007) Log Message: ----------- test for high-res boundaries Added Paths: ----------- trunk/toolkits/basemap-testing/examples/hires.py Added: trunk/toolkits/basemap-testing/examples/hires.py =================================================================== --- trunk/toolkits/basemap-testing/examples/hires.py (rev 0) +++ trunk/toolkits/basemap-testing/examples/hires.py 2007-11-01 14:46:46 UTC (rev 4089) @@ -0,0 +1,26 @@ +from matplotlib.toolkits.basemap import Basemap +from pylab import * +import time + +# create new figure +fig=figure() +# create Basemap instance. Use 'high' resolution coastlines. +t1 = time.clock() +m = Basemap(llcrnrlon=-11.,llcrnrlat=49.,urcrnrlon=5.,urcrnrlat=59., + resolution='h',projection='tmerc',lon_0=-8.,lat_0=0.) +print 'time to create instance with high-res boundaries = ',time.clock()-t1 +# draw coastlines and fill continents. +m.drawcoastlines() +m.fillcontinents() +# draw political boundaries. +m.drawcountries(linewidth=1) +# draw major rivers. +m.drawrivers(color='b') +# draw parallels +circles = arange(48,65,2).tolist() +m.drawparallels(circles,labels=[1,1,0,0]) +# draw meridians +meridians = arange(-12,13,2) +m.drawmeridians(meridians,labels=[0,0,1,1]) +title("High-Res British Isles",y=1.075) +show() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <js...@us...> - 2007-11-07 18:23:27
|
Revision: 4149 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4149&view=rev Author: jswhit Date: 2007-11-07 10:23:26 -0800 (Wed, 07 Nov 2007) Log Message: ----------- use nice colors for ocean and land Modified Paths: -------------- trunk/toolkits/basemap-testing/examples/hires.py Modified: trunk/toolkits/basemap-testing/examples/hires.py =================================================================== --- trunk/toolkits/basemap-testing/examples/hires.py 2007-11-07 18:21:35 UTC (rev 4148) +++ trunk/toolkits/basemap-testing/examples/hires.py 2007-11-07 18:23:26 UTC (rev 4149) @@ -4,6 +4,8 @@ # create new figure fig=figure() +# background color will be used for 'wet' areas. +fig.add_axes([0.1,0.1,0.8,0.8],axisbg='aqua') # create Basemap instance. Use 'high' resolution coastlines. t1 = time.clock() m = Basemap(llcrnrlon=-11.,llcrnrlat=49.,urcrnrlon=5.,urcrnrlat=59., @@ -11,7 +13,7 @@ print 'time to create instance with high-res boundaries = ',time.clock()-t1 # draw coastlines and fill continents. m.drawcoastlines() -m.fillcontinents() +m.fillcontinents(color='coral') # draw political boundaries. m.drawcountries(linewidth=1) # draw major rivers. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <js...@us...> - 2007-11-16 17:09:20
|
Revision: 4339 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4339&view=rev Author: jswhit Date: 2007-11-16 09:09:18 -0800 (Fri, 16 Nov 2007) Log Message: ----------- adjust projection bounds Modified Paths: -------------- trunk/toolkits/basemap-testing/examples/hires.py Modified: trunk/toolkits/basemap-testing/examples/hires.py =================================================================== --- trunk/toolkits/basemap-testing/examples/hires.py 2007-11-16 16:55:40 UTC (rev 4338) +++ trunk/toolkits/basemap-testing/examples/hires.py 2007-11-16 17:09:18 UTC (rev 4339) @@ -7,8 +7,8 @@ # create Basemap instance. Use 'high' resolution coastlines. t1 = time.clock() -m = Basemap(llcrnrlon=-11.,llcrnrlat=49.,urcrnrlon=5.,urcrnrlat=59., - resolution='h',projection='tmerc',lon_0=-8,lat_0=0) +m = Basemap(llcrnrlon=-10.5,llcrnrlat=49.5,urcrnrlon=3.5,urcrnrlat=59.5, + resolution='h',projection='tmerc',lon_0=-4,lat_0=0) # make sure countries and rivers are loaded m.drawcountries() m.drawrivers() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <js...@us...> - 2007-11-16 20:02:23
|
Revision: 4342 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4342&view=rev Author: jswhit Date: 2007-11-16 12:02:16 -0800 (Fri, 16 Nov 2007) Log Message: ----------- specify map with width and height Modified Paths: -------------- trunk/toolkits/basemap-testing/examples/hires.py Modified: trunk/toolkits/basemap-testing/examples/hires.py =================================================================== --- trunk/toolkits/basemap-testing/examples/hires.py 2007-11-16 18:15:32 UTC (rev 4341) +++ trunk/toolkits/basemap-testing/examples/hires.py 2007-11-16 20:02:16 UTC (rev 4342) @@ -7,8 +7,10 @@ # create Basemap instance. Use 'high' resolution coastlines. t1 = time.clock() -m = Basemap(llcrnrlon=-10.5,llcrnrlat=49.5,urcrnrlon=3.5,urcrnrlat=59.5, - resolution='h',projection='tmerc',lon_0=-4,lat_0=0) +#m = Basemap(llcrnrlon=-10.5,llcrnrlat=49.5,urcrnrlon=3.5,urcrnrlat=59.5, +# resolution='h',projection='tmerc',lon_0=-4,lat_0=0) +m = Basemap(width=920000,height=1100000, + resolution='h',projection='tmerc',lon_0=-4.2,lat_0=54.6) # make sure countries and rivers are loaded m.drawcountries() m.drawrivers() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |