[Yt-svn] yt: changed yt plot --time option to use scientific notation

hg at spacepope.org hg at spacepope.org
Fri Jul 2 14:26:38 PDT 2010


hg Repository: yt
details:   yt/rev/492d8be7ad04
changeset: 1859:492d8be7ad04
user:      J.S. Oishi <jsoishi at gmail.com>
date:
Fri Jul 02 14:26:11 2010 -0700
description:
changed yt plot --time option to use scientific notation

diffstat:

 yt/command_line.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 9a04cc4046d5 -r 492d8be7ad04 yt/command_line.py
--- a/yt/command_line.py	Fri Jul 02 14:17:52 2010 -0700
+++ b/yt/command_line.py	Fri Jul 02 14:26:11 2010 -0700
@@ -473,7 +473,7 @@
             if opts.grids: pc.plots[-1].modify["grids"]()
             if opts.time: 
                 time = pf['InitialTime']*pf['Time']*pf['years']
-                pc.plots[-1].modify["text"]((0.2,0.8), 't = %5.2f yr'%time)
+                pc.plots[-1].modify["text"]((0.2,0.8), 't = %5.2e yr'%time)
         pc.set_width(opts.width, opts.unit)
         pc.set_cmap(opts.cmap)
         if opts.zlim: pc.set_zlim(*opts.zlim)



More information about the yt-svn mailing list