summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-05-28 11:30:08 +0200
committerHolger Levsen <holger@layer-acht.org>2015-05-28 11:30:08 +0200
commitd2538f42bba87c428bbcfe337a7b0a501a3d15cb (patch)
treebea642bd208eff0b6a98d7318aaa690b0caac530
parent7dda9f86d5064e9538f4b2d00640a0505b98e852 (diff)
downloadjenkins.debian.net-d2538f42bba87c428bbcfe337a7b0a501a3d15cb.tar.xz
reproducible: fixup, colors need to have the right value...
-rwxr-xr-xbin/make_graph.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/make_graph.py b/bin/make_graph.py
index f4166910..f03e5633 100755
--- a/bin/make_graph.py
+++ b/bin/make_graph.py
@@ -49,10 +49,13 @@ def main():
r('palette(c("#73d216", "#000000"))')
elif int(colors) == 42:
r('palette(c("#8ae234", "#000000"))')
+ # "revert the hack" (it's still a hack :)
+ if int(colors) >= 40:
+ colors='1'
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 or int(colors) >= 40:
+ if int(colors) < 10:
r('legend(x="bottom",legend=colnames(t), ncol=2,fill=1:'+columns+',xjust=0.5,yjust=0,bty="n")')
elif int(colors) == 12:
r('legend(x="bottom",legend=colnames(t), ncol=4,fill=1:'+columns+',xjust=0.5,yjust=0,bty="n")')