Author: sleon
Date: 2006-01-07 01:19:02 +0000 (Sat, 07 Jan 2006)
New Revision: 7782

Modified:
   trunk/apps/freeviz/gen.py
   trunk/apps/freeviz/histogram.py
Log:
some more colour tweaks

Modified: trunk/apps/freeviz/gen.py
===================================================================
--- trunk/apps/freeviz/gen.py   2006-01-07 01:01:59 UTC (rev 7781)
+++ trunk/apps/freeviz/gen.py   2006-01-07 01:19:02 UTC (rev 7782)
@@ -39,14 +39,14 @@
                if nversion < lastver:
                        nodecolor=nodeOUTDATED

-               gnode = pydot.Node(node.name, shape='plaintext', label='''\
-<<FONT POINT-SIZE="10px"><table bgcolor="%s" CELLBORDER="0" border="1"
+               gnode = pydot.Node(node.name, style='filled', color=nodecolor , 
label='''\
+<<FONT POINT-SIZE="10px"><table CELLBORDER="0" border="0"
   CELLPADDING="2"
   CELLSPACING="3"
 ><tr><td align="left">%s</td>
 </tr><tr><td align="left">%s</td></tr>
 <tr><td align="left">Ver. %s</td></tr>
-</table></FONT>>''' % (nodecolor, node.name,node.location[0:7],nversion ))
+</table></FONT>>''' % (node.name,node.location[0:7],nversion ))
                g.add_node(gnode)

        #there are no dublicate edges in the database 

Modified: trunk/apps/freeviz/histogram.py
===================================================================
--- trunk/apps/freeviz/histogram.py     2006-01-07 01:01:59 UTC (rev 7781)
+++ trunk/apps/freeviz/histogram.py     2006-01-07 01:19:02 UTC (rev 7782)
@@ -3,11 +3,14 @@
 try:
        import gdchart
        from math import floor
+       import sys
+       sys.path+=['/home/sleon/public_html/bla/']
+
        import histdata

        links = histdata.get()
 except:
-       print "Blame sleon if his api is b0rk3d! :p"
+       print "Blame sleon if his api is b0rk3d! :p(comment from sleon: why me 
why me?\nblame nextgens for missing libs!"
        quit

 histogram=[0,0,0,0,0,0,0,0,0,0]
@@ -31,6 +34,6 @@
 x.ext_color = [ 0x055202 , 0x169310 , 0x298760 , 0x297987 , 0xc1d72b , 
0xd4f113 , 0xf18113 , 0xf13713 , 0xcf0000 , 0x000000 ]
 x.setData(histogram_percents)
 x.setLabels(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"])
-x.draw("histogram.png")
+x.draw("/tmp/histogram.png")
 print histogram
 print histogram_percents


Reply via email to