Konubinix' opinionated web of thoughts

Matplotlib

Fleeting

three ways to configure your backend:

The rcParams[“backend”] parameter in your matplotlibrc file The MPLBACKEND environment variable The function matplotlib.use()

https://matplotlib.org/stable/users/explain/figure/backends.html

import matplotlib matplotlib.use(‘qtagg’)

https://matplotlib.org/stable/users/explain/figure/backends.html

summary of the Matplotlib renderers (there is an eponymous backend for each; these are non-interactive backends, capable of writing to a file):

https://matplotlib.org/stable/users/explain/figure/backends.html

backends, capable of displaying to the screen and using appropriate renderers from the table above to write to a file:

https://matplotlib.org/stable/users/explain/figure/backends.html

non interactive plot

import matplotlib
matplotlib.use('AGG')