From 39e1287e336e3bca15246b74c4ab947795742284 Mon Sep 17 00:00:00 2001 From: Carsten Grohmann Date: Tue, 21 Dec 2021 20:56:56 +0100 Subject: [PATCH] Improved appearance of SVG diagrams The chart was widened from 400 to 500 and the font was no longer bold. Suggested-by: Mikko Rantalainen --- OOMAnalyser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OOMAnalyser.py b/OOMAnalyser.py index efeba00..dbe27fb 100644 --- a/OOMAnalyser.py +++ b/OOMAnalyser.py @@ -1774,7 +1774,7 @@ Out of memory: Killed process 651 (unattended-upgr) total-vm:108020kB, anon-rss: """Generate a SVG bar chart""" bar_height = 100 label_height = 80 - length_factor = 4 + length_factor = 5 overall_height = bar_height + label_height overall_width = 100 * length_factor css_class = 'js-mem-usage__svg' @@ -1814,6 +1814,7 @@ Out of memory: Killed process 651 (unattended-upgr) total-vm:108020kB, anon-rss: text = document.createElementNS(self.svg_namespace, 'text') text.setAttribute('x', '30') text.setAttribute('y', '18') + text.setAttribute('stroke-width', 0) text.textContent = title label_group.appendChild(color_rect)