- trying to get the right size of the HUD rectangle

This commit is contained in:
Marius Stanciu
2021-09-03 23:11:21 +03:00
committed by Marius
parent 73674db80e
commit 36749712af

View File

@@ -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