commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r9240 - gnuradio/branches/features/experimental-gui/pl


From: jblum
Subject: [Commit-gnuradio] r9240 - gnuradio/branches/features/experimental-gui/plotter
Date: Mon, 11 Aug 2008 16:17:03 -0600 (MDT)

Author: jblum
Date: 2008-08-11 16:17:03 -0600 (Mon, 11 Aug 2008)
New Revision: 9240

Modified:
   gnuradio/branches/features/experimental-gui/plotter/plotter_base.py
Log:
number tick display tweak

Modified: gnuradio/branches/features/experimental-gui/plotter/plotter_base.py
===================================================================
--- gnuradio/branches/features/experimental-gui/plotter/plotter_base.py 
2008-08-11 22:16:13 UTC (rev 9239)
+++ gnuradio/branches/features/experimental-gui/plotter/plotter_base.py 
2008-08-11 22:17:03 UTC (rev 9240)
@@ -255,8 +255,8 @@
                #format
                if tick == 0: exp = 0
                else: exp = int(math.floor(math.log10(abs(tick))))
-               base = int(tick/10**exp)
-               if abs(exp) >= 3: tick_str = '%de%d'%(base, exp)
+               base = tick/10**exp
+               if abs(exp) >= 3: tick_str = '%ge%d'%(base, exp)
                else: tick_str = '%g'%tick
                #draw
                txt = gltext.Text(tick_str, font_size=TICK_TEXT_FONT_SIZE, 
centered=True)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]