imshow?

I'm doing something wrong, obviously, but am not sure

    > what. I have Numeric 23.1 (and numarray 1.1) installed
    > under Python 2.2 on Fedora Core 1, and matplotlib 0.62.4.
    > Attempts to do an imshow() result in an error message
    > that "pygtk was not compiled with Numeric Python
    > support."

My guess is you are using a precompiled pygtk (eg the one that ships
with FC1). You'll probably need to compile pygtk from src, with
threads and numpy support

  > ./configure --enable-thread --enable-numpy
  > sudo make install

Alternatively, you could simply use the gtkagg backend, in which case
you won't need gtk with numpy support.

JDH

Yup. I changed .matplotlibrc to force the GTKAgg backend and all is
more or less well. I say this because (1) I'm using "ipython -pylab" on
both FC1 and FC2; (2) I'm using the precompiled pygtk2 on both; (3)
imshow works fine on FC2 with no .matplotlibrc file; and (4) the default
colormap on FC1 seems to be grayscale, but on FC2 it is colorful.

All systems have IPython 0.6.3 installed from Fernando's RPM and
matplotlib 0.62.4 built locally with no changes to the defaults.

Steve

···

On Thu, 2004-09-16 at 13:41, John Hunter wrote:

    > Attempts to do an imshow() result in an error message
    > that "pygtk was not compiled with Numeric Python
    > support."

My guess is you are using a precompiled pygtk (eg the one that ships
with FC1).