Re: [matplotlib-devel] default float format in mlab.rec2csv

2007-12-15 Thread Andrew Straw
OK, I created a test for numpy to isolate an issue: http://scipy.org/scipy/numpy/ticket/629 I think setting MPL's behavior to repr() is good, though. John, I see you did that r4745 -- thanks. -Andrew Fernando Perez wrote: > On Dec 15, 2007 2:52 PM, Andrew Straw <[EMAIL PROTECTED]> wrote: >> Ha

Re: [matplotlib-devel] default float format in mlab.rec2csv

2007-12-15 Thread Fernando Perez
On Dec 15, 2007 2:52 PM, Andrew Straw <[EMAIL PROTECTED]> wrote: > Hang on a minute, it looks like numpy.float64.__repr__() itself isn't > reproducing all significant digits... I'm writing up a test now and will > move this to the numpy list. I'm not sure how much is MPL and how much > is numpy at

Re: [matplotlib-devel] default float format in mlab.rec2csv

2007-12-15 Thread Andrew Straw
Hang on a minute, it looks like numpy.float64.__repr__() itself isn't reproducing all significant digits... I'm writing up a test now and will move this to the numpy list. I'm not sure how much is MPL and how much is numpy at this point. Trying to make a roundtrip through a .csv file not loose

Re: [matplotlib-devel] default float format in mlab.rec2csv

2007-12-15 Thread John Hunter
On Dec 15, 2007 3:13 PM, Andrew Straw <[EMAIL PROTECTED]> wrote: > mlab.defaultformatd sets the default float formatter for rec2csv() to be > something that doesn't keep the full representation of a floating point > number. Obviously, I can pass in my own formatd argument to rec2csv(), > but I wond

Re: [matplotlib-devel] default float format in mlab.rec2csv

2007-12-15 Thread Fernando Perez
On Dec 15, 2007 2:13 PM, Andrew Straw <[EMAIL PROTECTED]> wrote: > Hi, > > mlab.defaultformatd sets the default float formatter for rec2csv() to be > something that doesn't keep the full representation of a floating point > number. Obviously, I can pass in my own formatd argument to rec2csv(), > bu

[matplotlib-devel] default float format in mlab.rec2csv

2007-12-15 Thread Andrew Straw
Hi, mlab.defaultformatd sets the default float formatter for rec2csv() to be something that doesn't keep the full representation of a floating point number. Obviously, I can pass in my own formatd argument to rec2csv(), but I wonder if there's any reason why defaultformatd shouldn't use repr()