8000 [Bug]: Matplotlib and Herbie · Issue #29672 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
[Bug]: Matplotlib and Herbie #29672
Closed
Closed
@jp2nyy

Description

@jp2nyy

Bug summary

I am having an issue regarding MPL when using Herbie lately. This has been happening the past few weeks

Code for reproduction

!pip install xarray matplotlib pygrib numpy pandas basemap cartopy metpy Herbie-data eccodes==2.38.3

from herbie import Herbie
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
import numpy as np
import cartopy
import math
import metpy
from herbie.toolbox import EasyMap, pc, ccrs
from herbie import paint
import metpy.calc as mpcalc

Actual outcome


AttributeError Traceback (most recent call last)
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 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'

Expected outcome

The outcome expected is that it would run smoothly.

Additional information

It have worked in 3.8.4 before I believe.

Operating system

No response

Matplotlib Version

3.8.4

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

pip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0