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

Herbie Update Matplotlib #406

Open
jp2nyy opened this issue Feb 3, 2025 · 4 comments
Open

Herbie Update Matplotlib #406

jp2nyy opened this issue Feb 3, 2025 · 4 comments
Assignees

Comments

@jp2nyy
Copy link

jp2nyy commented Feb 3, 2025

I tried to get back into Herbie tonight but I ran into this:


AttributeError                            Traceback (most recent call last)
[<ipython-input-3-af961ee96c0b>](https://localhost:8080/#) in <cell line: 0>()
      6 import math
      7 import metpy
----> 8 from herbie.toolbox import EasyMap, pc, ccrs
      9 from herbie import paint
     10 import metpy.calc as mpcalc

3 frames
[/usr/local/lib/python3.11/dist-packages/mpl_toolkits/axes_grid1/inset_locator.py](https://localhost:8080/#) in InsetPosition()
     16 @_api.deprecated("3.8", alternative="Axes.inset_axes")
     17 class InsetPosition:
---> 18     @_docstring.dedent_interpd
     19     def __init__(self, parent, lbwh):
     20         """

AttributeError: module 'matplotlib._docstring' has no attribute 'dedent_interpd'

Which has not happened to me before is this a new update? If so, what can I do to fix it.

@blaylockbk
Copy link
Owner

This looks more like a matplotlib issue. What version of matplotlib do you have installed?

(FYI, those toolbox features are just some helpers for making plots with Cartopy. If you have trouble with them, I'd recommend just using cartopy directly)

@blaylockbk
Copy link
Owner

Note to self: It looks like I need to make sure the INSET method in EasyMap is up-to-date. I remember now that there was an update in Matplotlib that broke this, but I think I fixed it in the main branch. I'll need to update the required matplotlib version in my next Herbie release (I've been meaning to make a new release, just have a few other issues and trying to find time to resolve).

@blaylockbk blaylockbk self-assigned this Feb 3, 2025
@jp2nyy
Copy link
Author

jp2nyy commented Feb 3, 2025

It says 3.8.4 and that 3.10 was uninstalled

@jp2nyy
Copy link
Author

jp2nyy commented Feb 3, 2025

Even with 3.10 it gave me the error

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