From ea1c3ef54dbda741d291067d2e37fded492add09 Mon Sep 17 00:00:00 2001
From: Martin Kuban <kuban@physik.hu-berlin.de>
Date: Mon, 15 Jun 2020 20:28:27 +0200
Subject: [PATCH] small fix for plotting

---
 nomad_dos_fingerprints/plotting.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nomad_dos_fingerprints/plotting.py b/nomad_dos_fingerprints/plotting.py
index 04386e4..b606457 100644
--- a/nomad_dos_fingerprints/plotting.py
+++ b/nomad_dos_fingerprints/plotting.py
@@ -17,7 +17,7 @@ def plot_FP_in_grid(byte_fingerprint, grid, show = True, label = '', axes = None
         else:
             width=abs(item[0]-plotgrid[index-1][0])
         for idx, dos_value in enumerate(item[1]):
-            if bin_fp[bit_position]==1 and (bin_fp[bit_position+1] == 0 or idx == len(item[1])-1):
+            if bin_fp[bit_position]==1 and (idx == len(item[1])-1 or bin_fp[bit_position+1] == 0 ):
                 x.append(item[0])
                 y.append(dos_value)
                 all_width.append(width)
-- 
GitLab