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 a473e8f commit 3f594c4Copy full SHA for 3f594c4
mpl_gui/_manage_backend.py
@@ -5,6 +5,7 @@
5
6
from matplotlib import cbook, rcsetup
7
from matplotlib import rcParams, rcParamsDefault
8
+from matplotlib.backends.registry import backend_registry
9
import matplotlib.backend_bases
10
11
@@ -93,7 +94,7 @@ def select_gui_toolkit(newbackend=None):
93
94
if newbackend.lower() == "tkagg":
95
backend_name = f"mpl_gui._patched_backends.{newbackend.lower()}"
96
else:
- backend_name = cbook._backend_module_name(newbackend)
97
+ backend_name = backend_registry._backend_module_name(newbackend)
98
99
mod = importlib.import_module(backend_name)
100
if hasattr(mod, "Backend"):
requirements.txt
@@ -1,2 +1,2 @@
1
# List required packages in this file, one per line.
2
-matplotlib
+matplotlib>3.9
0 commit comments