Python basemap安装

一、basemap安装

安装参考链接:https://github.com/matplotlib/basemap

pip install --user git+https://github.com/matplotlib/basemap.git

安装过程等待一段时间,因为basemap有100M左右大小,需要时间下载,安装成功界面如下

使用官网安装教程没有成功,请谨慎使用,这里仅贴出官网链接做参考:https://matplotlib.org/basemap/users/installing.html

二、示例

from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
map = Basemap()
map.drawcoastlines()
plt.show()

结果如下:
Python basemap安装_第1张图片

你可能感兴趣的:(Python)