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://matpl
This is what worked for me. I just changed the import of Matplotlib
import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt