From 508b38c3be6ebe2ce44d98ccf4eac388053eafdb Mon Sep 17 00:00:00 2001
From: Arnaud Watlet <arnaud.watlet@umons.ac.be>
Date: Wed, 7 Jun 2023 08:26:32 +0000
Subject: [PATCH] fixes plots

---
 plots.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plots.py b/plots.py
index 9dce967c..d5573b53 100644
--- a/plots.py
+++ b/plots.py
@@ -33,7 +33,7 @@ def plot_fulldata(fulldata, axes=None, fig=None, save=False, output="fulldata.pn
     if realtime:
         fig.canvas.draw()
         fig.canvas.flush_events()
-        if plot_ads:
+        if not plot_ads:
            return fig, (ax1,ax2), (line1,line2)
         else:
             return fig, (ax1, ax2), (line1, line2, line3, line4)
@@ -66,4 +66,4 @@ def update_realtime_fulldata_plot(last_measurement, acquired_dataset, lines, axe
     fig.canvas.draw()
     fig.canvas.flush_events()
     
-    return fig,(ax1,ax2), lines, np.array([i_rt,u_rt,t]).T
\ No newline at end of file
+    return fig,(ax1,ax2), lines, np.array([i_rt,u_rt,t]).T
-- 
GitLab