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 like them and then tell 
ndarray to use it for __str__ or __repr__ using numpy.set_string_function().

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to