[AstroPy] Fwd: numarray pdf 1.5 is broken. Using numdisplay, Python, PIL, and Tkinter

Tommy Grav tgrav@mac....
Tue Apr 7 08:39:31 CDT 2009


try

from matplotlib import pyplot as plt

fig = plt.figure()


On Apr 7, 2009, at 9:35 AM, Wayne Watson wrote:

> Same result.
> import matplotlib as mpl
> import pyfits
>
> image = pyfits.getdata('mpl51.fits')
>
> fig = mpl.figure()
> ax = fix.add_subplot(111)
> ax.imshow(image)
> fig.canvas.draw()
> Traceback (most recent call last):
>   File "C:/Sandia_Meteors/Sentinel_Development/Development_Sentuser- 
> Utilities/sentuser/fun-pyfits.py", line 6, in <module>
>     fig = mpl.figure()
> TypeError: 'module' object is not callable

Tommy


More information about the AstroPy mailing list