From e045f96e4d30fdeb2c49763f96ce43e58bbf163d Mon Sep 17 00:00:00 2001
From: retoor <retoor@molodetz.nl>
Date: Sun, 12 Jan 2025 17:54:05 +0100
Subject: [PATCH] New version.

---
 merge.py         | 2 ++
 plot.py          | 3 +--
 requirements.txt | 2 ++
 3 files changed, 5 insertions(+), 2 deletions(-)
 create mode 100644 requirements.txt

diff --git a/merge.py b/merge.py
index ed94006..6577b27 100644
--- a/merge.py
+++ b/merge.py
@@ -39,6 +39,8 @@ html_content = ['<html>',
 f'Total lines written: {return_count}',
 '<br />',
 f'Total lines per hour: {lines_per_hour}',
+'<br />',
+f'Total hours: {hour_count}',
 '</b>',
 '<br>',
 ]
diff --git a/plot.py b/plot.py
index 70b6665..529e350 100644
--- a/plot.py
+++ b/plot.py
@@ -101,11 +101,10 @@ def render_per_day():
     plt.xlabel('Date')
     plt.ylabel('Event count')
     plt.xticks(rotation=45) 
+    plt.style.use('dark_background')
     plt.title('Keyboard events')
     plt.tight_layout() 
-    plt.style.use('dark_background')
     plt.legend()
-
     plt.savefig(f"graph_per_day.png")
 
 def render_per_week():
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000..f0b2593
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,2 @@
+matplotlib
+