Re: [Numpy-discussion] Always using scientific notation to print

2006-09-22 Thread Travis Oliphant
Brian Granger wrote: >>You can write a function that formats arrays how you like them and then tell >>ndarray to use it for __str__ or __repr__ using numpy.set_string_function(). >> >> > >That seems to be a little low level for most users. Would it be hard >to have the possibility of specifyi

Re: [Numpy-discussion] Always using scientific notation to print

2006-09-22 Thread Brian Granger
> You can write a function that formats arrays how you like them and then tell > ndarray to use it for __str__ or __repr__ using numpy.set_string_function(). That seems to be a little low level for most users. Would it be hard to have the possibility of specifying a format string? Brian ---

Re: [Numpy-discussion] Always using scientific notation to print

2006-09-22 Thread Robert Kern
Brian Granger wrote: > I want to be able to print an array in scientific notation. > > I have seen the set_printoptions() functions, but it doesn't really > have an option for *always* using scientific notation. > > Can this be done? How? You can write a function that formats arrays how you lik

[Numpy-discussion] Always using scientific notation to print

2006-09-22 Thread Brian Granger
I want to be able to print an array in scientific notation. I have seen the set_printoptions() functions, but it doesn't really have an option for *always* using scientific notation. Can this be done? How? Thanks Brian -