Fixing Annoying Issue With Matplotlib Pyplot In macOS


Running plt.show() causes all sorts of issues on macOS. To fix them, switch your matplotlib backend to something besides MacOSX. I used Qt5Agg.

Put this line into ~/.matplotlib/matplotlibrc

backend: Qt5Agg

Related Posts

Handy command line benchmarking tool

Stan Rogers

Ultimate Hot Couch Guy

Quote on Java Generics

The Programmer Tendency

Figure out undocumented JSON with gron

Mental Model of Dental Hygiene

Book Review: Swastika Night

Is there a name for this construction?

Fun with negation and idioms