New version.

This commit is contained in:
retoor 2025-01-12 17:54:05 +01:00
parent 6e61456575
commit e045f96e4d
3 changed files with 5 additions and 2 deletions

View File

@ -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>',
] ]

View File

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

@ -0,0 +1,2 @@
matplotlib