From d0e1b763a780d892a4709f1cae6ed55af98c2543 Mon Sep 17 00:00:00 2001
From: XANTRONIX Industrial <xan@xantronix.com>
Date: Tue, 4 Mar 2025 00:19:57 -0500
Subject: [PATCH] Better alignment

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

diff --git a/lib/xmet/hodograph.py b/lib/xmet/hodograph.py
index 586212a..9110ad3 100644
--- a/lib/xmet/hodograph.py
+++ b/lib/xmet/hodograph.py
@@ -124,11 +124,11 @@ class Hodograph():
         legends = {
             '0°': (
                 lambda e: x + cx - e.width / 2,
-                lambda e: y + self.height - 2 * e.height
+                lambda e: y + self.height - e.height
             ),
 
             '90°': (
-                lambda e: x + cx - e.width  * 2,
+                lambda e: x + e.height,
                 lambda e: y + cy + e.height / 2
             ),
 
@@ -138,7 +138,7 @@ class Hodograph():
             ),
 
             '270°': (
-                lambda e: x + self.width - e.width * 2,
+                lambda e: x + self.width - e.width - e.height,
                 lambda e: y + cy + e.height / 2
             )
         }