8000 FIX: when calling use do not trigger auto-backend resolution · matplotlib/matplotlib@2c1f52c · GitHub
[go: up one dir, main page]

Skip to content

Commit 2c1f52c

Browse files
tacaswellanntzer
authored andcommitted
FIX: when calling use do not trigger auto-backend resolution
1 parent 07b6c90 commit 2c1f52c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@ def use(arg, warn=True, force=False):
13451345
name = validate_backend(arg)
13461346

13471347
# if setting back to the same thing, do nothing
1348-
if (rcParams['backend'] == name):
1348+
if (dict.__getitem__(rcParams, 'backend') == name):
13491349
pass
13501350

13511351
# Check if we have already imported pyplot and triggered

0 commit comments

Comments
 (0)
0