ここに回答が
https://stackoverflow.com/questions/34764535/why-cant-matplotlib-plot-in-a-different-thread