MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / list_builtin

Method list_builtin

lib/matplotlib/backends/registry.py:267–289  ·  view source on GitHub ↗

Return list of backends that are built into Matplotlib. Parameters ---------- filter_ : `~.BackendFilter`, optional Filter to apply to returned backends. For example, to return only non-interactive backends use `.BackendFilter.NON_INTERACTIVE

(self, filter_=None)

Source from the content-addressed store, hash-verified

265 return [*self.list_builtin(), *self._backend_to_gui_framework]
266
267 def list_builtin(self, filter_=None):
268 """
269 Return list of backends that are built into Matplotlib.
270
271 Parameters
272 ----------
273 filter_ : `~.BackendFilter`, optional
274 Filter to apply to returned backends. For example, to return only
275 non-interactive backends use `.BackendFilter.NON_INTERACTIVE`.
276
277 Returns
278 -------
279 list of str
280 Backend names.
281 """
282 if filter_ == BackendFilter.INTERACTIVE:
283 return [k for k, v in self._BUILTIN_BACKEND_TO_GUI_FRAMEWORK.items()
284 if v != "headless"]
285 elif filter_ == BackendFilter.NON_INTERACTIVE:
286 return [k for k, v in self._BUILTIN_BACKEND_TO_GUI_FRAMEWORK.items()
287 if v == "headless"]
288
289 return [*self._BUILTIN_BACKEND_TO_GUI_FRAMEWORK]
290
291 def list_gui_frameworks(self):
292 """

Callers 5

list_allMethod · 0.95
pyplot.pyFile · 0.80
test_list_builtinFunction · 0.80

Calls

no outgoing calls

Tested by 3

test_list_builtinFunction · 0.64