Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
matplotlib==3.10.9
matplotlib==3.11.0
numpy==2.4.6
pandas==3.0.3
pooch==1.9.0
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/metpy/plots/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading