[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: fixup, colors need to have the right value...
Holger Levsen
holger at moszumanska.debian.org
Thu May 28 09:35:04 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit d2538f42bba87c428bbcfe337a7b0a501a3d15cb
Author: Holger Levsen <holger at layer-acht.org>
Date: Thu May 28 11:30:08 2015 +0200
reproducible: fixup, colors need to have the right value...
---
bin/make_graph.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/bin/make_graph.py b/bin/make_graph.py
index f416691..f03e563 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")')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list