From 2f492dd16c3c65867cb7042c087c2a6b6b21f5f2 Mon Sep 17 00:00:00 2001 From: XANTRONIX Industrial Date: Tue, 4 Mar 2025 11:03:27 -0500 Subject: [PATCH] Make hodograph zoom, alignment optional --- lib/xmet/hodograph.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/xmet/hodograph.py b/lib/xmet/hodograph.py index 9110ad3..15fee0e 100644 --- a/lib/xmet/hodograph.py +++ b/lib/xmet/hodograph.py @@ -308,8 +308,9 @@ class Hodograph(): offset += interval - def draw(self, cr: cairo.Context, x, y, sounding: Sounding): - self.extents = self.find_extents(sounding) + def draw(self, cr: cairo.Context, x, y, sounding: Sounding, zoom: bool=True): + if zoom: + self.extents = self.find_extents(sounding) cr.rectangle(x, y, self.width, self.height) cr.clip()