python - List of all available matplotlib backends -
the current backend name accessible via
>>> import matplotlib.pyplot plt >>> plt.get_backend() 'gtkagg'
is there way list of backends can used on particular machine?
thanks in advance.
you can access lists
matplotlib.rcsetup.interactive_bk matplotlib.rcsetup.non_interactive_bk matplotlib.rcsetup.all_backends
the third being concatenation of former two. if read source code correctly, lists hard-coded though, , don't tell backends usable. there also
matplotlib.rcsetup.validate_backend(name)
but checks against hard-coded list.
Comments
Post a Comment