Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #18991
| References | <b7e4a434-e6dd-4f1c-bfc9-164ad0fe74c0@i26g2000vbt.googlegroups.com> |
|---|---|
| Date | 2012-01-15 03:27 +0000 |
| Subject | Re: scientific notation in legend (pylab) |
| From | Jason Friedman <jason@powerpull.net> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4759.1326598036.27778.python-list@python.org> (permalink) |
> 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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
scientific notation in legend (pylab) simona bellavista <afylot@gmail.com> - 2012-01-14 07:27 -0800
Re: scientific notation in legend (pylab) Jason Friedman <jason@powerpull.net> - 2012-01-15 03:27 +0000
Re: scientific notation in legend (pylab) simona bellavista <afylot@gmail.com> - 2012-01-18 11:58 -0800
Re: scientific notation in legend (pylab) Jason Friedman <jason@powerpull.net> - 2012-01-18 20:21 -0700
csiph-web