It's a known problem with the MacOS X backend:
http://matplotlib.1069221.n5.nabble.com/Animation-example-error-on-Mac-after-installation-td26960.html
Try changing backend - for example, add
import matplotlib
matplotlib.use('TkAgg')
just *before*
import numpy as np
import matplotlib.pyplot as p
In article <67de0fd9-ad6f-4470-aea2-7fef70dc6...@mac.com>,
"William R. Wing (Bill Wing)" wrote:
> I'm running Mac OS-X 10.8.1, with python 2.7.3, numpy 1.8.0, matplotlib 1.2,
> and wxPython 2.9.3.1 (although wx isn't involved here, at least I don't think
> so). I'm running on a dual-quad proce
I'm running Mac OS-X 10.8.1, with python 2.7.3, numpy 1.8.0, matplotlib 1.2,
and wxPython 2.9.3.1 (although wx isn't involved here, at least I don't think
so). I'm running on a dual-quad processor Xeon Mac Pro.
I decided to learn something about animated matplotlib graphics, so started to
look