diff --git a/ci/requirements.txt b/ci/requirements.txt index bebafe23002..1168f5ec3a2 100644 --- a/ci/requirements.txt +++ b/ci/requirements.txt @@ -1,4 +1,4 @@ -matplotlib==3.10.9 +matplotlib==3.11.0 numpy==2.4.6 pandas==3.0.3 pooch==1.9.0 diff --git a/pyproject.toml b/pyproject.toml index 7ad5b26abc0..a60168197bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -111,9 +111,9 @@ xfail_strict = true filterwarnings = [ "error", "ignore:numpy.ndarray size changed:RuntimeWarning", - # To be removed in the next python-dateutil release. - # See: https://github.com/dateutil/dateutil/issues/1314 - 'ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning:dateutil.tz.tz:37', + # Nothing to be done now, need to wait until Matplotlib actually deprecates/removes + "ignore:.*set_over.*:PendingDeprecationWarning", + "ignore:.*set_under.*:PendingDeprecationWarning", # Numpy deprecation triggered by Pint: https://github.com/hgrecco/pint/pull/1880 "ignore:Conversion of an array with ndim > 0 to a scalar is deprecated:DeprecationWarning:pint.facets.plain.quantity:575", # PyProj automatically dispatching for single point, will be waiting for NumPy 2.0 to address diff --git a/src/metpy/plots/text.py b/src/metpy/plots/text.py index f22e8b8962a..4903951aed7 100644 --- a/src/metpy/plots/text.py +++ b/src/metpy/plots/text.py @@ -230,7 +230,9 @@ def draw(self, renderer): _, info, _ = self._get_layout(renderer) self._text = '' - for line, _, x, y in info: + for line, _, *xy in info: + # Matplotlib 3.11 changed the packing of this + x, y = xy if len(xy) == 2 else xy[0] mtext = self if len(info) == 1 else None x = x + posx