Update CLOC graph script

This commit is contained in:
akp 2020-12-19 20:41:54 +00:00
parent 8e4e9be912
commit 3465f3eb2a
No known key found for this signature in database
GPG key ID: D3E7EAA31B39637E

2
.github/clocgen.py vendored
View file

@ -61,6 +61,7 @@ python_colour = "#3572a5"
keys = list(sorted(python_by_day))
plt.plot(keys, [python_by_day[key] for key in keys], color=python_colour)
plt.scatter(keys, [python_by_day[key] for key in keys], color=python_colour, s=15)
a, b = best_fit(keys, [python_by_day[key] for key in keys])
yfit = [a + b * xi for xi in days_array]
@ -71,6 +72,7 @@ golang_colour = "#00add8"
keys = list(sorted(go_by_day))
plt.plot(keys, [go_by_day[key] for key in keys], color=golang_colour)
plt.scatter(keys, [go_by_day[key] for key in keys], color=golang_colour, s=15)
a, b = best_fit(keys, [go_by_day[key] for key in keys])
yfit = [a + b * xi for xi in days_array]