From 5bebafd179e04902d01572c67eb8aa1c5e6e42a7 Mon Sep 17 00:00:00 2001 From: Matthieu Moy Date: Sun, 9 Jan 2011 17:46:22 +0100 Subject: [PATCH] Set image size with "set terminal size", not "set size". Recent versions of gnuplot understand "set size" as the amount of space to use within the canava size. "set size 1,0.5" was therefore creating large images with the top half being blank. set terminal size works as expected at least with gnuplot 4.4 and 4.2. Signed-off-by: Heikki Hokkanen --- gitstats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitstats b/gitstats index 7675f58..cd1dcfd 100755 --- a/gitstats +++ b/gitstats @@ -14,7 +14,7 @@ import sys import time import zlib -GNUPLOT_COMMON = 'set terminal png transparent\nset size 1.0,0.5\n' +GNUPLOT_COMMON = 'set terminal png transparent size 640,240\nset size 1.0,1.0\n' ON_LINUX = (platform.system() == 'Linux') WEEKDAYS = ('Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun') -- 2.11.4.GIT