注意
跳到末尾 下载完整示例代码。
地理投影#
这展示了4种可能的地理投影。Cartopy 支持更多投影。
import matplotlib.pyplot as plt
plt.figure()
plt.subplot(projection="aitoff")
plt.title("Aitoff")
plt.grid(True)

plt.figure()
plt.subplot(projection="hammer")
plt.title("Hammer")
plt.grid(True)

plt.figure()
plt.subplot(projection="lambert")
plt.title("Lambert")
plt.grid(True)

plt.figure()
plt.subplot(projection="mollweide")
plt.title("Mollweide")
plt.grid(True)
plt.show()

脚本总运行时间: (0分2.749秒)