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 699ecad commit 73c0df7Copy full SHA for 73c0df7
lib/matplotlib/pyplot.py
@@ -2248,7 +2248,7 @@ def getname_val(identifier):
2248
# is compatible with the current running interactive framework.
2249
if (rcParams["backend_fallback"]
2250
and dict.__getitem__(rcParams, "backend") in [
2251
- k for k in _interactive_bk if k not in ['WebAgg', 'nbAgg']]
+ and dict.__getitem__(rcParams, "backend") in (set(_interactive_bk) - {'WebAgg', 'nbAgg'})
2252
and cbook._get_running_interactive_framework()):
2253
dict.__setitem__(rcParams, "backend", rcsetup._auto_backend_sentinel)
2254
# Set up the backend.
0 commit comments