John Hunter wrote:
> On Sun, May 17, 2009 at 11:07 PM, Jae-Joon Lee <lee.j.j...@gmail.com> wrote:
> 
>> I think one possible solution would be to simply deprecate the support
>> for PIL image in imshow, and let users explicitly use array-interface
>> via asarray function.
>>
>> Is there any other idea?
>> I'll make this change unless someone come up with something.
> 
> I'm not wild about removing the PIL functionality entirely just to
> remove an inconsistency.  Andrew wrote the PIL support -- perhaps he
> can comment.

I wouldn't remove PIL support in imshow immediately, either, but I think
deprecation should be OK. Since Image->numpy conversion is now happening
through the array interface, I don't think there's much call to support
PIL directly anymore. We should make the deprecation warning give the
appropriate hint ("In the future, 'imshow(pil_image)' will not be
supported. Use 'imshow(np.array(pil_image))' instead. Note that you may
need an origin='upper' keyword argument for the latter case.")

-Andrew

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to