Le 02/11/2014 09:34, Scott Lasley a écrit :
> I wish I could say that it was because of a deep understanding of the inner 
> workings of matplotlib or a rock solid grasp of python 3's bytes vs strings, 
> but it wasn't.   fig.savefig threw the "TypeError: string argument expected, 
> got 'bytes'" exception, so I figured BytesIO might work better with the 
> binary png data than StringIO, and it did.
As a side note on the "bytes vs strings" topic, there is PyCon video 
that I found immensely useful:
Pragmatic Unicode, or How Do I Stop the Pain 
http://nedbatchelder.com/text/unipain.html
IMHO a 30 minutes talk worth watching.

best,
Pierre

------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to