From 244f06de9b4a16c6540b5a5555d094ff590caf83 Mon Sep 17 00:00:00 2001 From: XANTRONIX Industrial Date: Sat, 1 Mar 2025 22:59:06 -0500 Subject: [PATCH] s/scale/zoom/ --- lib/xmet/hodograph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/xmet/hodograph.py b/lib/xmet/hodograph.py index ca469e9..a749016 100644 --- a/lib/xmet/hodograph.py +++ b/lib/xmet/hodograph.py @@ -21,13 +21,13 @@ def knots(ms: float) -> float: class Hodograph(): def __init__(self, width, height): - self.scale = 1.2 + self.zoom = 1.2 self.offset_x = 0.1 self.offset_y = 0.9 self.width = min(width, height) self.height = min(width, height) - self.radius = min(width, height) * self.scale + self.radius = min(width, height) * self.zoom def sample_to_screen(self, wind_speed: dir, wind_dir: float) -> tuple: r = self.radius * min(wind_speed, WIND_SPEED_MAX) / WIND_SPEED_MAX