ソースを参照

Y-Axis of graphs start at zero

Fix the base of graph y-axes at zero to prevent misleading graphics.

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
Richard Russon (flatcap) 11 年 前
コミット
15041086e6
共有1 個のファイルを変更した9 個の追加0 個の削除を含む
  1. 9
    0
      gitstats

+ 9
- 0
gitstats ファイルの表示

@@ -1171,6 +1171,7 @@ class HTMLReportCreator(ReportCreator):
1171 1171
 set output 'hour_of_day.png'
1172 1172
 unset key
1173 1173
 set xrange [0.5:24.5]
1174
+set yrange [0:]
1174 1175
 set xtics 4
1175 1176
 set grid y
1176 1177
 set ylabel "Commits"
@@ -1186,6 +1187,7 @@ plot 'hour_of_day.dat' using 1:2:(0.5) w boxes fs solid
1186 1187
 set output 'day_of_week.png'
1187 1188
 unset key
1188 1189
 set xrange [0.5:7.5]
1190
+set yrange [0:]
1189 1191
 set xtics 1
1190 1192
 set grid y
1191 1193
 set ylabel "Commits"
@@ -1216,6 +1218,7 @@ plot 'domains.dat' using 2:3:(0.5) with boxes fs solid, '' using 2:3:1 with labe
1216 1218
 set output 'month_of_year.png'
1217 1219
 unset key
1218 1220
 set xrange [0.5:12.5]
1221
+set yrange [0:]
1219 1222
 set xtics 1
1220 1223
 set grid y
1221 1224
 set ylabel "Commits"
@@ -1230,6 +1233,7 @@ plot 'month_of_year.dat' using 1:2:(0.5) w boxes fs solid
1230 1233
 """
1231 1234
 set output 'commits_by_year_month.png'
1232 1235
 unset key
1236
+set yrange [0:]
1233 1237
 set xdata time
1234 1238
 set timefmt "%Y-%m"
1235 1239
 set format x "%Y-%m"
@@ -1248,6 +1252,7 @@ plot 'commits_by_year_month.dat' using 1:2:(0.5) w boxes fs solid
1248 1252
 """
1249 1253
 set output 'commits_by_year.png'
1250 1254
 unset key
1255
+set yrange [0:]
1251 1256
 set xtics 1 rotate
1252 1257
 set grid y
1253 1258
 set ylabel "Commits"
@@ -1263,6 +1268,7 @@ plot 'commits_by_year.dat' using 1:2:(0.5) w boxes fs solid
1263 1268
 """
1264 1269
 set output 'files_by_date.png'
1265 1270
 unset key
1271
+set yrange [0:]
1266 1272
 set xdata time
1267 1273
 set timefmt "%Y-%m-%d"
1268 1274
 set format x "%Y-%m-%d"
@@ -1282,6 +1288,7 @@ plot 'files_by_date.dat' using 1:2 w steps
1282 1288
 """
1283 1289
 set output 'lines_of_code.png'
1284 1290
 unset key
1291
+set yrange [0:]
1285 1292
 set xdata time
1286 1293
 set timefmt "%s"
1287 1294
 set format x "%Y-%m-%d"
@@ -1301,6 +1308,7 @@ plot 'lines_of_code.dat' using 1:2 w lines
1301 1308
 set terminal png transparent size 640,480
1302 1309
 set output 'lines_of_code_by_author.png'
1303 1310
 set key left top
1311
+set yrange [0:]
1304 1312
 set xdata time
1305 1313
 set timefmt "%s"
1306 1314
 set format x "%Y-%m-%d"
@@ -1329,6 +1337,7 @@ plot """
1329 1337
 set terminal png transparent size 640,480
1330 1338
 set output 'commits_by_author.png'
1331 1339
 set key left top
1340
+set yrange [0:]
1332 1341
 set xdata time
1333 1342
 set timefmt "%s"
1334 1343
 set format x "%Y-%m-%d"