File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -292,6 +292,18 @@ def list_builtin(self, filter_=None):
292
292
293
293
return list (self ._BUILTIN_BACKEND_TO_GUI_FRAMEWORK .keys ())
294
294
295
+ def list_gui_frameworks (self ):
296
+ """
297
+ Return list of gui frameworks used by Matplotlib backends.
298
+
299
+ Returns
300
+ -------
301
+ list of str
302
+ GUI framework names.
303
+ """
304
+ return [k for k in self ._GUI_FRAMEWORK_TO_BACKEND .keys ()
305
+ if k != "headless" ]
306
+
295
307
def load_backend_module (self , backend ):
296
308
"""
297
309
Load and return the module containing the specified backend.
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ class BackendRegistry:
26
26
def is_valid_backend (self , backend : str ) -> bool : ...
27
27
def list_all (self ) -> list [str ]: ...
28
28
def list_builtin (self , filter_ : BackendFilter | None ) -> list [str ]: ...
29
+ def list_gui_frameworks (self ) -> list [str ]: ...
29
30
def load_backend_module (self , backend : str ) -> ModuleType : ...
30
31
def resolve_backend (self , backend : str | None ) -> tuple [str , str | None ]: ...
31
32
def resolve_gui_or_backend (self , gui_or_backend : str | None ) -> tuple [str , str | None ]: ...
You can’t perform that action at this time.
0 commit comments