Matplotlib hacks
import matplotlib matplotlib.use('TkAgg') # generate postscript output by default import matplotlib.pyplot as plt