소스 검색

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