【发布时间】:2021-06-06 05:47:17
【问题描述】:
可以通过这种方式直接从xarray.Dataset 创建地图子图:(取自第二个示例here)
p = air.isel(time=[0, 4]).plot(
transform=ccrs.PlateCarree(),
col="time",
subplot_kws={"projection": ccrs.Orthographic(-80, 35)})
for ax in p.axes.flat:
ax.coastlines()
ax.gridlines()
但是,这对应于使用标准的matplotlib 子图,例如将AxesGrid 传递给plot 函数,以便最初对子图进行更多控制会很好。这可能吗?
【问题讨论】:
标签: python matplotlib plot python-xarray