Skip to content

Commit

Permalink
FIX: account for changes to private methods in mpl39
Browse files Browse the repository at this point in the history
Also require at least mpl 3.9
  • Loading branch information
tacaswell committed Dec 29, 2024
1 parent a72f357 commit 75cdfaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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

0 comments on commit 75cdfaf

Please sign in to comment.