From e59a7196989fb40d1362f86e1b2e4673cc0cd9f0 Mon Sep 17 00:00:00 2001
From: Gamelin Alexis <gamelin@synchrotron-soleil.fr>
Date: Fri, 18 Dec 2020 16:16:14 +0100
Subject: [PATCH] Bugfix : bunch profile plot was broken

---
 tracking/monitors/plotting.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tracking/monitors/plotting.py b/tracking/monitors/plotting.py
index 6483f16..a854760 100644
--- a/tracking/monitors/plotting.py
+++ b/tracking/monitors/plotting.py
@@ -447,7 +447,7 @@ def plot_wakedata(filename, bunch_number, wake_type="Wlong", start=0,
         scale = [1]
         label = ["$\\rho$ (a.u.)"]
         
-    if dipole == True:
+    elif dipole == True:
         tau_name = "tau_" + wake_type
         wake_type = "dipole_" + wake_type
         dimension_dict = {wake_type:0}
-- 
GitLab