Matplotlib plots not showing up in Mac OSX?

Open the way picture Open the way · Mar 25, 2010 · Viewed 72k times · Source

I am running Mac OSX 10.5.8. I installed matplotlib using macports. I get some examples from the matplotlib gallery like this one, without modification:

http://matplotlib.sourceforge.net/examples/api/unicode_minus.html

I run it, get no error, but the picture does not show up. In Linux Ubuntu I get it.

Do you know what could be wrong here?

Answer

layser picture layser · Feb 13, 2016

I had the same problem, even I could see how a new application window was created and immediately disappeared.

Simple solution - just check if you have

plt.show()

after the plot