[Numpy-discussion] Always using scientific notation to print

Travis Oliphant oliphant at ee.byu.edu
Fri Sep 22 13:55:45 CDT 2006


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 specifying a format string?
>  
>
No, that woudn't be hard.  If you can wait several weeks, add a ticket, 
or better, dig in to the current printing function and add it to the 
set_printoptions code.

-Travis





More information about the Numpy-discussion mailing list