Avoid division by zero in hodograph production

This commit is contained in:
XANTRONIX 2025-03-30 00:32:02 -04:00
parent eee4c781cc
commit 66392f0612

View file

@ -33,6 +33,9 @@ class Hodograph():
box_height = max_y - min_y
box = max(box_width, box_height) * 1.5
if box == 0:
box = 1.5
#
# Ensure the data points are centered within the hodograph
# viewbox.