[rhmessaging-commits] rhmessaging commits: r1163 - in mgmt: notes and 1 other directory.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu Oct 25 16:38:14 EDT 2007


Author: justi9
Date: 2007-10-25 16:38:14 -0400 (Thu, 25 Oct 2007)
New Revision: 1163

Modified:
   mgmt/cumin/python/cumin/charts.py
   mgmt/notes/Todo
Log:
Moves frame drawing down so that it overlaps the value lines.  Ensures
that we draw value lines all the way to the left edge.



Modified: mgmt/cumin/python/cumin/charts.py
===================================================================
--- mgmt/cumin/python/cumin/charts.py	2007-10-25 19:36:05 UTC (rev 1162)
+++ mgmt/cumin/python/cumin/charts.py	2007-10-25 20:38:14 UTC (rev 1163)
@@ -20,7 +20,8 @@
         cr.set_line_width(2)
         cr.set_source_rgb(*color)
 
-        for x, value in zip(range(self.width, 0, -interval), reversed(values)):
+        for x, value in zip(range(self.width, 0 - interval, -interval),
+                            reversed(values)):
             y = self.height - (value / float(self.max_value)) * self.height
             cr.line_to(x, y)
 
@@ -94,13 +95,14 @@
 
         chart.plot_x_intervals()
         chart.plot_y_axis()
-        chart.plot_frame()
 
         colors = ((1,0,0), (0,0,1), (0,1,0))
 
         for m, c in zip(measures, colors):
             chart.plot_values(m.values, color=c)
         
+        chart.plot_frame()
+
         name = "/tmp/whoa.png"
         chart.write(name)
         file = open(name, "r")

Modified: mgmt/notes/Todo
===================================================================
--- mgmt/notes/Todo	2007-10-25 19:36:05 UTC (rev 1162)
+++ mgmt/notes/Todo	2007-10-25 20:38:14 UTC (rev 1163)
@@ -110,3 +110,7 @@
 
  * Right now, non cumin pages don't print their stack traces in the
    log
+
+ * Make the 0 errors, 0 warnings thing more compact; maybe just lights
+
+ * Find out how to make pycairo write to an existing file




More information about the rhmessaging-commits mailing list