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

Skip to content

Commit 169d535

Browse files
committed
Fix issue resolve testing backend
1 parent 9102a27 commit 169d535

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ def __setitem__(self, key, val):
755755
_api.warn_deprecated(
756756
version, name=key, obj_type="rcparam", alternative=alt_key)
757757
return
758-
elif key == 'backend':
758+
elif key == 'backend' or key == "default.backend":
759759
if val is rcsetup._auto_backend_sentinel:
760760
if 'backend' in self:
761761
return
@@ -1380,7 +1380,7 @@ def get_backend():
13801380
--------
13811381
matplotlib.use
13821382
"""
1383-
return rcParams['default.backend']
1383+
return rcParams['backend']
13841384

13851385

13861386
def interactive(b):

0 commit comments

Comments
 (0)