~/cvs/matplotlib/htdocs/screenshots> /usr/bin/python
> makeshots.py Making screenshot simple_plot.py Traceback
> (most recent call last): File "simple_plot.py", line 1, in ?
> from matplotlib.matlab import * File
> "/usr/local/lib/python2.1/site-packages/matplotlib/matlab.py",
> line 109, in ? from mlab import * File
> "/usr/local/lib/python2.1/site-packages/matplotlib/mlab.py",
> line 147 else: numFreqs = NFFT//2+1 ^ SyntaxError: invalid
> syntax
matplotlib requires python2.2, which supports
from __future__ import division
That line should be the on or near the first code line of
matplotlib/mlab.py. When this is imported, the integer division //
operator is defined.
See what's new in python2.2
http://www.python.org/doc/2.2.3/whatsnew/node7.html
I'm surprised you didn't get an error on the call to
from __future__ import division.
JDH