Browse Source

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 <hoxu@users.sf.net>
Matthieu Moy 15 years ago
parent
commit
5bebafd179
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      gitstats

+ 1
- 1
gitstats View File

14
 import time
14
 import time
15
 import zlib
15
 import zlib
16
 
16
 
17
-GNUPLOT_COMMON = 'set terminal png transparent\nset size 1.0,0.5\n'
17
+GNUPLOT_COMMON = 'set terminal png transparent size 640,240\nset size 1.0,1.0\n'
18
 ON_LINUX = (platform.system() == 'Linux')
18
 ON_LINUX = (platform.system() == 'Linux')
19
 WEEKDAYS = ('Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun')
19
 WEEKDAYS = ('Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun')
20
 
20