瀏覽代碼

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 年之前
父節點
當前提交
5bebafd179
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      gitstats

+ 1
- 1
gitstats 查看文件

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