Benjamin Root <ben.root@...1304...> 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.
Also, matplotlib is also able to do imshow(), pcolor() and other
rasterized drawings, so we aren't restricted to just line drawings.
Yes, I guess there are some circumstances in which this would make
sense. Would supporting WebP require new library dependencies?
Jouni K. Sepp�nen