From a5de90ca2a9f2d39069bc06b46314ff16e325f3e Mon Sep 17 00:00:00 2001 From: Carsten Grohmann Date: Fri, 6 Apr 2018 22:20:26 +0200 Subject: [PATCH] Rotate colours if more elements in SVG diagram than colours --- OOMAnalyser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OOMAnalyser.py b/OOMAnalyser.py index 05a48ff..2eee92b 100644 --- a/OOMAnalyser.py +++ b/OOMAnalyser.py @@ -532,7 +532,7 @@ Killed process 6576 (java) total-vm:33914892kB, anon-rss:20629004kB, file-rss:0k if not rect_len: continue - colour = self.svg_colours[nr_processed_elements] + colour = self.svg_colours[nr_processed_elements % len(self.svg_colours)] rect = self._create_svg_rect(current_pos, 0, rect_len, bar_height, colour) bar_group.appendChild(rect)