Bläddra i källkod

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 år sedan
förälder
incheckning
5bebafd179
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      gitstats

+ 1
- 1
gitstats Visa fil

@@ -14,7 +14,7 @@ import sys
14 14
 import time
15 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 18
 ON_LINUX = (platform.system() == 'Linux')
19 19
 WEEKDAYS = ('Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun')
20 20