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,
             'hanning'  : _image.HANNING,
             'hamming'  : _image.HAMMING,
             'hermite'  : _image.HERMITE,
             'kaiser'   : _image.KAISER,
             'quadric'  : _image.QUADRIC,
             'catrom'   : _image.CATROM,
             'gaussian' : _image.GAUSSIAN,
             'bessel'   : _image.BESSEL,
             'mitchell' : _image.MITCHELL,
             'sinc'     : _image.SINC,
             'lanczos'  : _image.LANCZOS,
             'blackman' : _image.BLACKMAN,
         }

Logically I suspect this should be a class attribute, not an instance 
attribute, which would make things easier for you (and is an easy change 
to make--I can make it unless someone quickly points out why this would 
be a mistake.)  Maybe the keys should be a separate class attribute, 
with no underscore, since although the values in this dictionary may be 
implementation-dependent, the keys should not be--they are part of the 
external interface.

Let me know if making these changes in svn is worthwhile.

Eric

fred wrote:
> 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 interpd.keys().
> 
> TIA.
> 
> Cheers,
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to