Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5e859f8

Browse files
committed
Fix undefined names.
Fixes #11550.
1 parent cac3be2 commit 5e859f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ def __getitem__(self, key):
918918
elif key in _deprecated_ignore_map:
919919
version, alt_key = _deprecated_ignore_map[key]
920920
cbook.warn_deprecated(
921-
version, key, obj_type, alternative=alt_key)
921+
version, key, obj_type="rcparam", alternative=alt_key)
922922
return dict.__getitem__(self, alt_key) if alt_key else None
923923

924924
elif key == 'examples.directory':

lib/matplotlib/gridspec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import numpy as np
2121

2222
import matplotlib as mpl
23-
from matplotlib import _pylab_helpers, tight_layout, rcParams
23+
from matplotlib import _pylab_helpers, cbook, tight_layout, rcParams
2424
from matplotlib.transforms import Bbox
2525
import matplotlib._layoutbox as layoutbox
2626

0 commit comments

Comments
 (0)