8000 Revert "FIX: pyplot auto-backend detection case-sensitivity fixup" · matplotlib/matplotlib@86fd11f · GitHub
[go: up one dir, main page]

Skip to content

Commit 86fd11f

Browse files
committed
Revert "FIX: pyplot auto-backend detection case-sensitivity fixup"
This reverts commit f45707d.
1 parent baf4c3f commit 86fd11f

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

lib/matplotlib/pyplot.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2715,15 +2715,12 @@ def polar(*args, **kwargs) -> list[Line2D]:
27152715
# If rcParams['backend_fallback'] is true, and an interactive backend is
27162716
# requested, ignore rcParams['backend'] and force selection of a backend that
27172717
# is compatible with the current running interactive framework.
2718-
if rcParams["backend_fallback"]:
2719-
requested_backend = rcParams._get_backend_or_none() # type: ignore[attr-defined]
2720-
requested_backend = None if requested_backend is None else requested_backend.lower()
2721-
available_backends = backend_registry.list_builtin(BackendFilter.INTERACTIVE)
2722-
if (
2723-
requested_backend in (set(available_backends) - {'webagg', 'nbagg'})
2724-
and cbook._get_running_interactive_framework()
2725-
):
2726-
rcParams._set("backend", rcsetup._auto_backend_sentinel)
2718+
if (rcParams["backend_fallback"]
2719+
and rcParams._get_backend_or_none() in ( # type: ignore[attr-defined]
2720+
set(backend_registry.list_builtin(BackendFilter.INTERACTIVE)) -
2721+
{'webagg', 'nbagg'})
2722+
and cbook._get_running_interactive_framework()):
2723+
rcParams._set("backend", rcsetup._auto_backend_sentinel)
27272724

27282725
# fmt: on
27292726

0 commit comments

Comments
 (0)
0