1

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.

2

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.