From 36749712af81b2a7878caa1f51ad57324755c195 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Fri, 3 Sep 2021 23:11:21 +0300 Subject: [PATCH] - trying to get the right size of the HUD rectangle --- appGUI/PlotCanvas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appGUI/PlotCanvas.py b/appGUI/PlotCanvas.py index 8437ccc0..6f178f74 100644 --- a/appGUI/PlotCanvas.py +++ b/appGUI/PlotCanvas.py @@ -354,7 +354,7 @@ class PlotCanvas(QtCore.QObject, VisPyCanvas): # print(self.fcapp.qapp.devicePixelRatio()) # coordinates and anchors - height = (5 * l1_height) + c_font_metrics.lineSpacing() * 3 + height = (5 * l1_height) + c_font_metrics.lineSpacing() * 1.5 width = max(l1_length, l2_length, l3_length, l4_length) * 1.3 # don't know where the 1.3 comes center_x = (width / 2) + 5 center_y = (height / 2) + 5