From daf36302eaa481b90728cd5617894140b8c70cde Mon Sep 17 00:00:00 2001
From: Dennis Noll <github_001@nollde.de>
Date: Tue, 10 Nov 2020 12:17:50 +0100
Subject: [PATCH] [plotting] pd fixed bug when index is not sorted

---
 plotting.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plotting.py b/plotting.py
index 85bb92e..d4f8b0a 100644
--- a/plotting.py
+++ b/plotting.py
@@ -117,6 +117,7 @@ def figure_history(history_csv_path):
 def plot_histories(history_csv_path, path, cut=None, roll=1):
     df = pd.read_csv(history_csv_path)
     df = df.set_index("epoch")
+    df = df.sort_index()
     df = df.truncate(after=cut)
     for col in df.columns:
         if col.startswith("val_"):
-- 
GitLab