Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4ffb68 commit 0eaa2dbCopy full SHA for 0eaa2db
lib/matplotlib/pyplot.py
@@ -2244,8 +2244,8 @@ def getname_val(identifier):
2244
# requested, ignore rcParams['backend'] and force selection of a backend that
2245
# is compatible with the current running interactive framework.
2246
if (rcParams["backend_fallback"]
2247
- and dict.__getitem__(rcParams, "backend") in [
2248
- k for k in _interactive_bk if k not in ['WebAgg', 'nbAgg']]
+ and dict.__getitem__(rcParams, "backend") in (
+ set(_interactive_bk) - {'WebAgg', 'nbAgg'})
2249
and cbook._get_running_interactive_framework()):
2250
dict.__setitem__(rcParams, "backend", rcsetup._auto_backend_sentinel)
2251
# Set up the backend.
0 commit comments