From 66392f061233b8644dbfd28e26209a2a03e179f7 Mon Sep 17 00:00:00 2001
From: XANTRONIX Industrial <xan@xantronix.com>
Date: Sun, 30 Mar 2025 00:32:02 -0400
Subject: [PATCH] Avoid division by zero in hodograph production

---
 lib/xmet/hodograph.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/xmet/hodograph.py b/lib/xmet/hodograph.py
index 76d50bf..a2027ff 100644
--- a/lib/xmet/hodograph.py
+++ b/lib/xmet/hodograph.py
@@ -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.