Relative Content

Tag Archive for pythonpython-3.xmatplotlibcartopy

KeyError : ‘geo’ when attempting to add GeoAxes using axes.inset_axes

I was trying to create vertical cross-sections of meteorological data. I wanted the main plot to be a normal matplotlib plot showing the vertical cross-section data, with an inset in the upper-right showing the location of the cross-section on a map. I have previously been able to inset cartopy GeoAxes in other plots using Figure.add_axes, so I was surprised it failed here with inset_axes.

KeyError : ‘geo’ when attempting to add GeoAxes using axes.inset_axes

I was trying to create vertical cross-sections of meteorological data. I wanted the main plot to be a normal matplotlib plot showing the vertical cross-section data, with an inset in the upper-right showing the location of the cross-section on a map. I have previously been able to inset cartopy GeoAxes in other plots using Figure.add_axes, so I was surprised it failed here with inset_axes.