Interpolation to axes coordinate with ds.hyoga.interp(ax=ax) fails on matplotlib Axes due to an internal call of ax.get_extent() which is only available on cartopy Geoaxes. To reproduce:
import matplotlib.pyplot as plot
import hyoga
ax = plt.axes()
with hyoga.open.example('pism.alps.out.2d.nc') as ds:
ds = ds.hyoga.interp(hyoga.open.example('pism.alps.vis.refined.nc'), ax=ax)
Interpolation to axes coordinate with
ds.hyoga.interp(ax=ax)
fails on matplotlibAxes
due to an internal call ofax.get_extent()
which is only available on cartopyGeoaxes
. To reproduce: