On 10/02/2010 01:39 PM, Jouni K. Seppänen wrote: > Benjamin Root<ben.r...@ou.edu> writes: > > >> And yet, we still allow for saving to jpegs. >> > Wow, I didn't know. Last time I tried that I got a traceback, and > assumed that it was not supported exactly because jpeg is a nonsensical > format for most graphs. > > I just tried again, and got "TypeError: 'int' object is unsubscriptable" > from PIL/JpegImagePlugin.pyc in _save(im, fp, filename). I suppose this > doesn't get much testing. > Aside from the question of whether we "should" support JPEGs, etc., that code path should work (and in fact it does on my machine). What version of PIL do you have installed, and can you provide the full traceback here? I'd like to get to the bottom of this bug, even if it's an infrequently used feature.
Mike -- Michael Droettboom Science Software Branch Space Telescope Science Institute Baltimore, Maryland, USA ------------------------------------------------------------------------------ Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding. http://p.sf.net/sfu/hp-phase2-d2d _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users