本文整理汇总了Python中matplotlib.toolkits.basemap.Basemap.drawrivers方法的典型用法代码示例。如果您正苦于以下问题:Python Basemap.drawrivers方法的具体用法?Python Basemap.drawrivers怎么用?Python Basemap.drawrivers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类matplotlib.toolkits.basemap.Basemap
的用法示例。
在下文中一共展示了Basemap.drawrivers方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Basemap
# 需要导入模块: from matplotlib.toolkits.basemap import Basemap [as 别名]
# 或者: from matplotlib.toolkits.basemap.Basemap import drawrivers [as 别名]
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()