Zoom hodograph out a bit

This commit is contained in:
XANTRONIX 2025-03-03 17:20:29 -05:00
parent 66ca08c1ff
commit 5307498522

View file

@ -40,8 +40,12 @@ class Hodograph():
box_width = max_x - min_x
box_height = max_y - min_y
box = max(box_width, box_height)
box = max(box_width, box_height) * 1.5
#
# Ensure the data points are centered within the hodograph
# viewbox.
#
offset_x = self.width * ((box - box_width) / box) / 2
offset_y = self.height * ((box - box_height) / box) / 2