0、import
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
1、地球的“蓝色弹珠”投影照片
fig = plt.figure(figsize=(8, 8),
facecolor='cornsilk'
)
m = Basemap(projection='ortho', resolution=None, lat_0=50, lon_0=-100)
m.bluemarble(scale=0.5)
plt.show();
效果:
2、简单的世界地图
fig = plt.figure(figsize=(12, 8),
facecolor='cornsilk'
)
m = Basemap()
m.drawcoastlines()
plt.show()
效果: