summaryrefslogtreecommitdiffstats
path: root/bin/make_graph.py
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-01-06 02:09:00 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-06 02:09:00 +0100
commitf3c0d9a0af96bc68d7c68d904dfba16c3da63c7a (patch)
tree13b77854486c95d27e4e837f768d88859e4723c6 /bin/make_graph.py
parentac095ebcf4459ad87c4e1bc71ad279dc9b3dd288 (diff)
downloadjenkins.debian.net-f3c0d9a0af96bc68d7c68d904dfba16c3da63c7a.tar.xz
reproducible: track new usertag: cpu
Diffstat (limited to 'bin/make_graph.py')
-rwxr-xr-xbin/make_graph.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/make_graph.py b/bin/make_graph.py
index ea183fbc..c1a080f8 100755
--- a/bin/make_graph.py
+++ b/bin/make_graph.py
@@ -35,14 +35,15 @@ def main():
"#fcaf3e", "#ce5c00", "#ad7fa8", "#5c3566", \
"#e9b96e", "#8f5902", "#8ae234", "#4e9a06", \
"#729fcf", "#204a87", "#ef2929", "#a40000", \
- "#888a85", "#2e3436", "#75507b", "#cc0000"))')
+ "#888a85", "#2e3436", "#75507b", "#cc0000", \
+ "#ce5c00", "#73d216"))')
r('v <- t[0:nrow(t),0:'+colors+']')
# make graph since day 1
r('barplot(t(v),col = 1:'+columns+', main="'+mainlabel+'", xlab="", ylab="'+ylabel+'", space=0, border=NA)')
if int(colors) < 10:
r('legend(x="bottom",legend=colnames(t), ncol=2,fill=1:'+columns+',xjust=0.5,yjust=0,bty="n")')
else:
- r('legend(x="bottom",legend=colnames(t), ncol=5,fill=1:'+columns+',xjust=0.5,yjust=0,bty="n")')
+ r('legend(x="bottom",legend=colnames(t), ncol=6,fill=1:'+columns+',xjust=0.5,yjust=0,bty="n")')
grdevices.dev_off()
if __name__ == "__main__":