[Piuparts-commits] rev 919 - trunk

Holger Levsen holger at alioth.debian.org
Sun Jul 10 12:45:09 UTC 2011


Author: holger
Date: 2011-07-10 12:45:08 +0000 (Sun, 10 Jul 2011)
New Revision: 919

Modified:
   trunk/piuparts-report.py
Log:
also need for r911

Modified: trunk/piuparts-report.py
===================================================================
--- trunk/piuparts-report.py	2011-07-10 12:28:15 UTC (rev 918)
+++ trunk/piuparts-report.py	2011-07-10 12:45:08 UTC (rev 919)
@@ -878,12 +878,12 @@
         # here we define how many days we wants stats for (163=half a year)
         #r('v <- t[(nrow(t)-163):nrow(t),0:10]')
         # make graph since day 1  
-        r('v <- t[0:nrow(t),0:10]')
+        r('v <- t[0:nrow(t),0:12]')
         # thanks to http://tango.freedesktop.org/Generic_Icon_Theme_Guidelines for those nice colors
         r('palette(c("#4e9a06", "#ef2929", "#d3d7cf", "#5c3566", "#c4a000", "#fce94f", "#a40000", "#888a85", "#2e3436", "#729fcf", "3465a4", "#204a87", "555753"))')
         r('bitmap(file="'+pngfile+'",type="png16m",width=16,height=9,pointsize=10,res=100)')
         r('barplot(t(v),col = 1:13, main="Binary packages per state in '+self._config.section+'", xlab="", ylab="Number of binary packages",space=0.1,border=0)')
-        r('legend(x="bottom",legend=colnames(t), ncol=2,fill=1:11,xjust=0.5,yjust=0,bty="n")')
+        r('legend(x="bottom",legend=colnames(t), ncol=2,fill=1:13,xjust=0.5,yjust=0,bty="n")')
         return "<tr class=\"normalrow\"> <td class=\"contentcell2\" colspan=\"3\"><a href=\"%s\"><img src=\"/%s/%s\" height=\"450\" width=\"800\" alt=\"Binary package states in %s\"></a></td></tr>\n" % ("states.png", self._config.section, "states.png", self._config.section)
 
     def create_and_link_to_analysises(self,state):




More information about the Piuparts-commits mailing list