Python 在cartopy绘图上缩放时更新横向/纵向轴

Python 在cartopy绘图上缩放时更新横向/纵向轴,python,python-3.x,matplotlib,cartopy,Python,Python 3.x,Matplotlib,Cartopy,我正在用cartopy绘制一些数据。我希望能够放大地图的一个区域,并更新纬度/经度轴以反映放大的区域。相反,当我放大时,它们完全消失了。我该如何解决这个问题 这是我生成轴的代码 plt.figure() ax = plt.axes(projection=cartopy.crs.PlateCarree()) ax.add_feature(cartopy.feature.LAND, edgecolor='black') gl = ax.gridlines(crs=cartopy.crs.PlateC

我正在用cartopy绘制一些数据。我希望能够放大地图的一个区域,并更新纬度/经度轴以反映放大的区域。相反,当我放大时,它们完全消失了。我该如何解决这个问题

这是我生成轴的代码

plt.figure()
ax = plt.axes(projection=cartopy.crs.PlateCarree())
ax.add_feature(cartopy.feature.LAND, edgecolor='black')
gl = ax.gridlines(crs=cartopy.crs.PlateCarree(), draw_labels=True,
                  linewidth=2, color='gray', alpha=0.5, linestyle='--')
# plot some stuff here

交互式缩放不可能。