Matplotlib Not Working In Python, … Matplotlib’s GUI backends (Tk, Qt, wx) must run on the main thread.