当前位置: 首页>>代码示例>>Python>>正文


Python Basemap.drawcoastLines方法代码示例

本文整理汇总了Python中mpl_toolkits.basemap.Basemap.drawcoastLines方法的典型用法代码示例。如果您正苦于以下问题:Python Basemap.drawcoastLines方法的具体用法?Python Basemap.drawcoastLines怎么用?Python Basemap.drawcoastLines使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在mpl_toolkits.basemap.Basemap的用法示例。


在下文中一共展示了Basemap.drawcoastLines方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: Basemap

# 需要导入模块: from mpl_toolkits.basemap import Basemap [as 别名]
# 或者: from mpl_toolkits.basemap.Basemap import drawcoastLines [as 别名]
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap

m = Basemap()
m.drawcoastLines()

Year = [1790, 1800, 1810, 1820, 1830, 1840, 1850, 1860, 1870, 1880, 1890, 1900, 1910, 1920, 1930, 1940, 1950, 1960, 1970, 1980, 1990, 2000, 2010]

Manhattan = [33131, 60515, 96373, 123706, 202589, 312710, 515547, 813669, 942292, 1164673, 1441216, 1850093, 2331542, 2284103, 1867312, 1889924, 1960101, 1698281, 1539233, 1428285, 1487536, 1537195, 1585873]
Brooklyn = [4549, 5740, 8303, 11187, 20535, 47613, 138882, 279122, 419921, 599495, 838547, 1166582, 1634351, 2018356, 2560401, 2698285, 2738175, 2627319, 2602012, 2230936, 2300664, 2465326, 2504700] 
Queens = [6159, 6642, 7444, 8246, 9049, 14480, 18593, 32903, 45468, 56559, 87050, 152999, 284041, 469042, 1079129, 1297634, 1550849, 1809578, 1986473, 1891325, 1951598, 2229379, 2230722]
Bronx = [1781, 1755, 2267, 2782, 3023, 5346, 8032, 23593, 37393, 51980, 88908, 200507, 430980, 732016, 1265258, 1394711, 1451277, 1424815, 1471701, 1168972, 1203789, 1332650, 1385108]
Staten = [3827, 4563, 5347, 6135, 7082, 10965, 15061, 25492, 33029, 38991, 51693, 67021, 85969, 116531, 158346, 174441, 191555, 221991, 295443, 352121, 378977, 443728, 468730]
Total = [49447, 79215, 119734, 152056, 242278, 391114, 696115, 1174779, 1478103, 1911698, 2507414, 3437202, 4766883, 5620048, 6930446, 7454995, 7891957, 7781984, 7894862, 7071639, 7322564, 8008278, 8175133]

#plt.scatter(Queens, Total, color='r')
plt.show()
开发者ID:niqwilk,项目名称:Data-Science,代码行数:19,代码来源:linear+regression+scatter.py


注:本文中的mpl_toolkits.basemap.Basemap.drawcoastLines方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。