From d2538f42bba87c428bbcfe337a7b0a501a3d15cb Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 28 May 2015 11:30:08 +0200 Subject: reproducible: fixup, colors need to have the right value... --- bin/make_graph.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin/make_graph.py') 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")') -- cgit v1.2.3-54-g00ecf