diff --git a/lib/xmet/hodograph.py b/lib/xmet/hodograph.py index 963cd08..731e863 100644 --- a/lib/xmet/hodograph.py +++ b/lib/xmet/hodograph.py @@ -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