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.