From afdc8c4328b412542f80a8891f3c15f96bd4ea51 Mon Sep 17 00:00:00 2001
From: weisse02 <andreas.weissenbrunner@ptb.de>
Date: Fri, 28 Oct 2022 22:32:39 +0200
Subject: [PATCH] fix plot over dl

---
 GUI_Elbow.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/GUI_Elbow.py b/GUI_Elbow.py
index 00a1c75..8b75242 100644
--- a/GUI_Elbow.py
+++ b/GUI_Elbow.py
@@ -700,11 +700,10 @@ class mainPanel(wx.Panel):
             #
         elif plot_over == 3 and flow.case != "SingleElbow": # this is dl
             x = np.linspace(flow.dl[0],flow.dl[-1],200)
-            y,y_u   = self.interpol_meter(self.Rc,self.dl,self.dist,x)
-            x = x/pi*180
+            y,y_u   = self.interpol_meter(self.Rc,x,self.dist,self.phi)
             xlabel = "angle in grad"
             # the selected x-value from the sliders
-            x_selected = self.phi/pi*180
+            x_selected = self.dl
             #
         else: 
             print("no axes selected")
-- 
GitLab