Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Axes' object has no attribute 'get_geometry' #23

Open
liuchao95 opened this issue Dec 13, 2023 · 2 comments
Open

'Axes' object has no attribute 'get_geometry' #23

liuchao95 opened this issue Dec 13, 2023 · 2 comments

Comments

@liuchao95
Copy link

liuchao95 commented Dec 13, 2023

Hello developers,
I installed the ipart=3.6.1 using conda under python=3.10,
When I test the functionality of this package using "compute_ivt.py" under the "scripts" directory. The calculation procedure is fine, but it shows the following plotting error:
AttributeError: 'Axes' object has no attribute 'get_geometry'.
The corresponding package version is also attached, cartopy=0.21.1, matplotlib=3.7.2.
I think it may be related to the update of the relevant packages that abort the old use of the "get_geometry" method. Please check it.

image

@Xunius
Copy link
Collaborator

Xunius commented Dec 13, 2023

Hi @liuchao95

Thanks for reporting this bug. I believe this is because of some API changes in newer versions of matplotlib. I will try to patch it up in a few days.

Before that, you could either delete all the plotting code (starting from Line 51 in compute_ivt.py) and only let the script output the netcdf results, or, downgrade the matplotlib to a lower version, for instance, try conda install matplotlib=3.2.

Hope that helps.

@liuchao95
Copy link
Author

Thanks for your concern and notes. It's fine for me to just focus on the calculation part at this stage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants