Re: [Matplotlib-users] getting list of interpolation functions...

2008-02-03 Thread Eric Firing
Fred, Cleaning out old mail, I came across this thread. I know it is not exactly what you were requesting, but I still think it meets the need you describe: in svn 4936 I moved _interpd and _interpdr from __init__ to the class attribute level, and added a public class attribute, AxesImage.int

Re: [Matplotlib-users] getting list of interpolation functions...

2007-07-19 Thread fred
Eric Firing a écrit : > > I don't understand; it seems to me that all you need is > _interpd.keys(), and since this is specific to AxesImage, it should be > an attribute of that class, say AxesImage.interpolations. You can't > add interpolation methods, and they have no meaning outside AxesImag

Re: [Matplotlib-users] getting list of interpolation functions...

2007-07-19 Thread Eric Firing
fred wrote: > Eric Firing a écrit : >> Fred, >> >> In image.py, the AxesImage.__init__() includes: >> >>self._interpd = { >> 'nearest' : _image.NEAREST, >> 'bilinear' : _image.BILINEAR, >> 'bicubic' : _image.BICUBIC, >> 'spline16' : _image.S

Re: [Matplotlib-users] getting list of interpolation functions...

2007-07-19 Thread fred
Eric Firing a écrit : > Fred, > > In image.py, the AxesImage.__init__() includes: > >self._interpd = { > 'nearest' : _image.NEAREST, > 'bilinear' : _image.BILINEAR, > 'bicubic' : _image.BICUBIC, > 'spline16' : _image.SPLINE16, >

Re: [Matplotlib-users] getting list of interpolation functions...

2007-07-19 Thread Eric Firing
Fred, In image.py, the AxesImage.__init__() includes: self._interpd = { 'nearest' : _image.NEAREST, 'bilinear' : _image.BILINEAR, 'bicubic' : _image.BICUBIC, 'spline16' : _image.SPLINE16, 'spline36' : _image.SPLINE36,

Re: [Matplotlib-users] getting list of interpolation functions...

2007-07-19 Thread fred
Eric Firing a écrit : > fred wrote: >> Hi, >> >> How can I get the list of the available interpolation functions >> used by imshow() ? >> >> TIA. >> >> Cheers, >> Sorry, I was not clear. I want to get the list, not to know, in order to set it in a trait object, for instance, using something like

Re: [Matplotlib-users] getting list of interpolation functions...

2007-07-19 Thread Eric Firing
fred wrote: > Hi, > > How can I get the list of the available interpolation functions > used by imshow() ? > > TIA. > > Cheers, > ipython -pylab imshow? or ipython import pylab pylab.imshow? or python import pylab help(pylab.imshow) Eric -

[Matplotlib-users] getting list of interpolation functions...

2007-07-19 Thread fred
Hi, How can I get the list of the available interpolation functions used by imshow() ? TIA. Cheers, -- http://scipy.org/FredericPetit - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft Visual S