Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mpl_gui/_manage_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from matplotlib import cbook, rcsetup
from matplotlib import rcParams, rcParamsDefault
from matplotlib.backends.registry import backend_registry
import matplotlib.backend_bases


Expand Down Expand Up @@ -92,7 +93,7 @@ def select_gui_toolkit(newbackend=None):
if newbackend.lower() == "tkagg":
backend_name = f"mpl_gui._patched_backends.{newbackend.lower()}"
else:
backend_name = cbook._backend_module_name(newbackend)
backend_name = backend_registry._backend_module_name(newbackend)

mod = importlib.import_module(backend_name)
if hasattr(mod, "Backend"):
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# List required packages in this file, one per line.
matplotlib
matplotlib>3.9
Loading