scientific notation in legend (pylab)

Jason Friedman jason at powerpull.net
Sat Jan 14 22:27:12 EST 2012


> I I would like to have numbers expressed in scientific notation in
> legend annotations. Does anybody know how to do that?
>

Not sure why legend annotations makes the problem different, but
perhaps this is a start:

$ python3
Python 3.2 (r32:88445, Jun 11 2011, 10:38:04)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print("{:e}".format(1000))
1.000000e+03

http://docs.python.org/library/string.html



More information about the Python-list mailing list