[rhmessaging-commits] rhmessaging commits: r1916 - mgmt/cumin/python/cumin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Tue Apr 15 13:56:08 EDT 2008


Author: justi9
Date: 2008-04-15 13:56:07 -0400 (Tue, 15 Apr 2008)
New Revision: 1916

Modified:
   mgmt/cumin/python/cumin/charts.py
Log:
Some adjustments to text position

Modified: mgmt/cumin/python/cumin/charts.py
===================================================================
--- mgmt/cumin/python/cumin/charts.py	2008-04-15 17:41:19 UTC (rev 1915)
+++ mgmt/cumin/python/cumin/charts.py	2008-04-15 17:56:07 UTC (rev 1916)
@@ -14,7 +14,7 @@
         self.width = width - 60
         self.height = height - 20
         self.surface = ImageSurface(FORMAT_ARGB32, width, height)
-        self.surface.set_device_offset(0.5, 8.5)
+        self.surface.set_device_offset(1.5, 5.5)
         self.x_max = 1
         self.x_min = 0
         self.y_max = 1
@@ -85,7 +85,8 @@
             x = self.width - (i * interval)
 
             cr.move_to(x, 0)
-            cr.line_to(x, self.height + 10)
+            cr.line_to(x, self.height + 12)
+            cr.move_to(x + 2, self.height + 12)
 
             if i % step == 0:
                 value = absmax - (absmax * x / float(self.width))
@@ -106,7 +107,8 @@
             y = self.height - (i * interval)
 
             cr.move_to(0, y)
-            cr.line_to(self.width + 2, y)
+            cr.line_to(self.width + 3, y)
+            cr.move_to(self.width + 4, y + 3)
 
             if i % step == 0:
                 fraction = (self.height - y) / float(self.height)
@@ -117,7 +119,7 @@
                     svalue = "%ik" % int(round(value / 1000.0, -1))
                 else:
                     svalue = str(value)
-
+                
                 cr.show_text(svalue)
 
         cr.stroke()




More information about the rhmessaging-commits mailing list