8000 Merge pull request #16382 from meeseeksmachine/auto-backport-of-pr-16… · matplotlib/matplotlib@55894c2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 55894c2

Browse files
authored
Merge pull request #16382 from meeseeksmachine/auto-backport-of-pr-16379-on-v3.1.x
Backport PR #16379 on branch v3.1.x (FIX: catch on message content, not module)
2 parents bbf4c7c + 85e3f1c commit 55894c2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/matplotlib/cbook/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,9 +1414,10 @@ def _check_1d(x):
14141414
# This code should correctly identify and coerce to a
14151415
# numpy array all pandas versions.
14161416
with warnings.catch_warnings(record=True) as w:
1417-
warnings.filterwarnings("always",
1418-
category=DeprecationWarning,
1419-
module='pandas[.*]')
1417+
warnings.filterwarnings(
1418+
"always",
1419+
category=DeprecationWarning,
1420+
message='Support for multi-dimensional indexing')
14201421

14211422
ndim = x[:, None].ndim
14221423
# we have definitely hit a pandas index or series object

0 commit comments

Comments
 (0)
0