diff --git a/README.md b/README.md
index 5586107..4306afd 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
This project compares the evolution of [Rust/findutils](https://github.com/uutils/findutils) with the GNU & BFS testsuite for findutils.
-
-
+
+
diff --git a/bfs-results.png b/bfs-results.png
deleted file mode 100644
index 7444b29..0000000
Binary files a/bfs-results.png and /dev/null differ
diff --git a/bfs-results.svg b/bfs-results.svg
new file mode 100644
index 0000000..5b66fea
--- /dev/null
+++ b/bfs-results.svg
@@ -0,0 +1,1388 @@
+
+
+
diff --git a/gnu-results.png b/gnu-results.png
deleted file mode 100644
index 7047477..0000000
Binary files a/gnu-results.png and /dev/null differ
diff --git a/gnu-results.svg b/gnu-results.svg
new file mode 100644
index 0000000..5ab207c
--- /dev/null
+++ b/gnu-results.svg
@@ -0,0 +1,1392 @@
+
+
+
diff --git a/graph.py b/graph.py
index 30d60aa..d5e93df 100644
--- a/graph.py
+++ b/graph.py
@@ -1,38 +1,31 @@
-from datetime import datetime
-from email.utils import parsedate
-
import sys
-import time
import matplotlib.pyplot as plt
import pandas as pd
-d = pd.read_json(sys.argv[1], orient="index")
+file = sys.argv[1]
+d = pd.read_json(file, orient="index")
df = pd.DataFrame(d)
df.columns.names = ["date"]
-as_list = df.index.tolist()
-for i in as_list:
- idx = as_list.index(i)
- t = parsedate(i)
- as_list[idx] = datetime.fromtimestamp(time.mktime(t))
-
-df.index = as_list
+df.index = pd.to_datetime(df.index, utc=True)
print(df)
-ax = plt.gca()
+fig, ax = plt.subplots(figsize=(9.6, 7.2))
df.plot(y="total", color="blue", ax=ax)
df.plot(y="fail", color="gray", ax=ax, dashes=(2, 1))
df.plot(y="pass", color="green", ax=ax, dashes=(4, 1))
-if "gnu" in sys.argv[1]:
+if "gnu" in file:
df.plot(y="error", color="orange", ax=ax, dashes=(6, 2))
-plt.xticks(rotation=45)
-if "gnu" in sys.argv[1]:
+fig.autofmt_xdate()
+plt.margins(0.01)
+plt.ylim(ymin=0)
+if "gnu" in file:
plt.title("Rust/findutils running GNU testsuite")
- plt.savefig("gnu-results.png", dpi=199)
+ plt.savefig("gnu-results.svg", format="svg", dpi=199, bbox_inches="tight")
else:
plt.title("Rust/findutils running BFS testsuite")
- plt.savefig("bfs-results.png", dpi=199)
+ plt.savefig("bfs-results.svg", format="svg", dpi=199, bbox_inches="tight")