- made sure that the location labels in the InfoBar have only the decimals required when the Grid snapping is ON

This commit is contained in:
Marius Stanciu
2021-08-31 02:25:43 +03:00
committed by Marius
parent 7dfb8152ce
commit d90e86da39
14 changed files with 133 additions and 73 deletions

View File

@@ -300,12 +300,18 @@ class PlotCanvas(QtCore.QObject, VisPyCanvas):
def on_update_text_hud(self, dx=None, dy=None, x=None, y=None):
"""
Update the text of the location labels from HUD
:param dx:
:param dy:
:param x:
:param y:
:param x: X location
:type x: float
:param y: Y location
:type y: float
:param dx: Delta X location
:type dx: float
:param dy: Delta Y location
:type dy: float
:return:
:rtype: None
"""
# units
units = self.fcapp.defaults["units"].lower()