Skip to content

Instantly share code, notes, and snippets.

@tikurahul
Created September 21, 2019 05:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tikurahul/917b5e17c5973a49521f6ab5079f069c to your computer and use it in GitHub Desktop.
Save tikurahul/917b5e17c5973a49521f6ab5079f069c to your computer and use it in GitHub Desktop.
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