【发布时间】:2019-02-06 16:10:40
【问题描述】:
我正在尝试放大正交投影中的一些 Cartopy 图,但使用简单的 ax.set_extent() 方法似乎是不可能的。
我正在使用的代码:
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
fig = plt.figure()
ax = plt.axes(projection = ccrs.Orthographic())
ax.set_global()
ax.set_extent((-120,120,50,90), crs = ccrs.PlateCarree())
我收到以下错误:
ValueError: Failed to determine the required bounds in projection coordinates.
实际上,我只需要设置一个较低的边界纬度来绘制极地区域的图,这是我以前使用 Basemap 所做的。但是我不知道如何继续使用 Cartopy。
有没有办法做到这一点?
【问题讨论】:
标签: matplotlib orthographic cartopy