Travis Oliphant wrote:

>Filip Wasilewski wrote:
>
>  
>
>>Hi Travis,
>>
>>this is a great example of the __array_interface__ usage.
>>
>> 
>>
>>    
>>
>
>Just to complete the example:
>
>With the Image.py patch that adds the __array_interface__
>
>you can do
>
>import Image, pylab
>
>im = Image.open('somefile.jpg')
>pylab.imshow(im, origin='lower')
>
>and get a nice picture in the matplotlib window (at least if you are 
>running NumPy).
>  
>

Actually, this has been in MPL for a while. For example, see the
image_demo3.py example. You don't need the __array_interface__ for this
bit of functionality.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to