darkside <in.the.darks...@gmail.com> writes: >>>> x = np.fromstring(b,sep='')
That should be sep=' ' (a space) to make it read ASCII representations of numbers. Otherwise it will interpret the string as binary, and if the string length happens to be a multiple of 8, you get garbage data, otherwise it raises the following exception: > ValueError: string size must be a multiple of element size -- Jouni K. Seppänen http://www.iki.fi/jks ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users