["python","matplotlib"]
List of all available matplotlib backends

The current backend name is accessible via >>> import matplotlib.pyplot as plt >>> plt.get_backend() 'GTKAgg' Is there a way to get a list of all backends that can be used on a particular machine?
Matplotlib 3.9 and above has a backend registry that you can use to query backends in various ways: from matplotlib.backends import backend_registry # interactive backends backend_registry.list_builtin(matplotlib.backends.BackendFilter.INTERACTIVE) # noninteractive backends backend_registry.list_builtin(matplotlib.backends.BackendFilter.NON_INTERACTIVE) # all backends built into Matplotlib backend_registry.list_builtin() # all registered backends backend_registry.list_all() In older versions of Matplotlib you can use the lists matplotlib.rcsetup.interactive_bk matplotlib.rcsetup.non_interactive_bk matplotlib.rcsetup.all_backends the third being the concatenation of the former two. These will be remove in version 3.11.