Sfoglia il codice sorgente

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 anni fa
parent
commit
5bebafd179
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      gitstats

+ 1
- 1
gitstats Vedi File

@@ -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