New version.
This commit is contained in:
parent
6e61456575
commit
e045f96e4d
2
merge.py
2
merge.py
@ -39,6 +39,8 @@ html_content = ['<html>',
|
|||||||
f'Total lines written: {return_count}',
|
f'Total lines written: {return_count}',
|
||||||
'<br />',
|
'<br />',
|
||||||
f'Total lines per hour: {lines_per_hour}',
|
f'Total lines per hour: {lines_per_hour}',
|
||||||
|
'<br />',
|
||||||
|
f'Total hours: {hour_count}',
|
||||||
'</b>',
|
'</b>',
|
||||||
'<br>',
|
'<br>',
|
||||||
]
|
]
|
||||||
|
3
plot.py
3
plot.py
@ -101,11 +101,10 @@ def render_per_day():
|
|||||||
plt.xlabel('Date')
|
plt.xlabel('Date')
|
||||||
plt.ylabel('Event count')
|
plt.ylabel('Event count')
|
||||||
plt.xticks(rotation=45)
|
plt.xticks(rotation=45)
|
||||||
|
plt.style.use('dark_background')
|
||||||
plt.title('Keyboard events')
|
plt.title('Keyboard events')
|
||||||
plt.tight_layout()
|
plt.tight_layout()
|
||||||
plt.style.use('dark_background')
|
|
||||||
plt.legend()
|
plt.legend()
|
||||||
|
|
||||||
plt.savefig(f"graph_per_day.png")
|
plt.savefig(f"graph_per_day.png")
|
||||||
|
|
||||||
def render_per_week():
|
def render_per_week():
|
||||||
|
2
requirements.txt
Normal file
2
requirements.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
matplotlib
|
||||||
|
|
Loading…
Reference in New Issue
Block a user