Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install the right Matplotlib backend

Install the Backend

sudo apt-get install tk-dev python-tk python3-tk

Install Matplotlib

pip install matplotlib

Check Backend

import matplotlib.pyplot as plt
plt.get_backend() # Should print `TkAgg`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment