fefff
fefff

Reputation: 141

Change matplotlib default backend at system level

I know I can change the default matplotlib backend when importing matplotlib in my code like the answers here. But I'm sure there's a way to change the default backend configuration at system level, by uncommenting a line in a file.

The problem is: I don't remember what file it is and I wasn't able to find it at the documentation. This is important because I don't want to use agg as the default, as it's not a GUI backend.

Upvotes: 1

Views: 455

Answers (1)

fefff
fefff

Reputation: 141

I've found it... it's the matplotlibrc file. In a virtual environment it is located at venv/lib/python3.8/site-packages/matplotlib/mpl-data/matplotlibrc

Upvotes: 1

Related Questions