SourceForge logo
SourceForge logo
Menu

matplotlib-checkins

From: <js...@us...> - 2007年11月01日 15:17:32
Revision: 4090
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4090&view=rev
Author: jswhit
Date: 2007年11月01日 08:17:24 -0700 (2007年11月01日)
Log Message:
-----------
hires boundary example
Added Paths:
-----------
 trunk/toolkits/basemap/examples/hires.py
Added: trunk/toolkits/basemap/examples/hires.py
===================================================================
--- trunk/toolkits/basemap/examples/hires.py	 (rev 0)
+++ trunk/toolkits/basemap/examples/hires.py	2007年11月01日 15:17:24 UTC (rev 4090)
@@ -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年12月27日 13:05:46
Revision: 4793
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4793&view=rev
Author: jswhit
Date: 2007年12月27日 05:05:41 -0800 (2007年12月27日)
Log Message:
-----------
adjust title
Modified Paths:
--------------
 trunk/toolkits/basemap/examples/hires.py
Modified: trunk/toolkits/basemap/examples/hires.py
===================================================================
--- trunk/toolkits/basemap/examples/hires.py	2007年12月27日 13:02:56 UTC (rev 4792)
+++ trunk/toolkits/basemap/examples/hires.py	2007年12月27日 13:05:41 UTC (rev 4793)
@@ -42,5 +42,5 @@
 # draw meridians
 meridians = arange(-12,13,2)
 m.drawmeridians(meridians,labels=[0,0,1,1])
-title("High-Res British Isles",y=1.075)
+title("High-Res British Isles",y=1.04)
 show()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /