You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to work with the inset_axes() function for the first time, using geographic data plotted with matplotlib and CartoPy, but have been running into a variety of issues. For simplicity's sake, point #3 on #29174 is a good representation of what I am trying to do (recreated below).
Hi @moss-xyz#29174 is included in the version 3.11 milestone so this will start working when that version is released. If you need the functionality earlier, you could try installing a nightly build.
However then you fall foul of the 2nd point in #29174. I do not see a way around that because the method that sets the transform on the connector gets called within draw, so a transform set manually will be overwritten.
Ah beaut thanks for the quick response @rcomer - I'm not in any rush, so I'll wait for the 3.11 build to be released (or install a nightly if I'm getting impatient).
Bug summary
I'm trying to work with the
inset_axes()
function for the first time, using geographic data plotted with matplotlib and CartoPy, but have been running into a variety of issues. For simplicity's sake, point #3 on #29174 is a good representation of what I am trying to do (recreated below).Code for reproduction
Actual outcome
ValueError: Axes should be an instance of GeoAxes, got <class 'NoneType'>
.This is happening even though I am verifying that both
ax
andinset_ax
are GeoAxes usingtype()
.Expected outcome
Additional information
I am posting this in matplotlib as it seems to be more of an issue with the
inset_axes()
function rather than theGeoAxes
class.Full Stack Trace >
Operating system
No response
Matplotlib Version
3.10.1
Matplotlib Backend
No response
Python version
3.12.9
Jupyter version
No response
Installation
conda
The text was updated successfully, but these errors were encountered: