From 7dda9f86d5064e9538f4b2d00640a0505b98e852 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 28 May 2015 11:14:58 +0200 Subject: reproducible: palette needs two colors --- bin/make_graph.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/make_graph.py') diff --git a/bin/make_graph.py b/bin/make_graph.py index 83b833c0..f4166910 100755 --- a/bin/make_graph.py +++ b/bin/make_graph.py @@ -44,11 +44,11 @@ def main(): "#ce5c00", "#73d216", "#edd400", "#f57900", \ "#c17d11", "#3465a4", "#666666", "#AAAAAA" ))') elif int(colors) == 40: - r('palette(c("#4e9a06"))') + r('palette(c("#4e9a06", "#000000"))') elif int(colors) == 41: - r('palette(c("#73d216"))') + r('palette(c("#73d216", "#000000"))') elif int(colors) == 42: - r('palette(c("#8ae234"))') + r('palette(c("#8ae234", "#000000"))') 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)') -- cgit v1.2.3-54-g00ecf