From 337b6655e4b3e647e62cfed4a6a844a76fe365be Mon Sep 17 00:00:00 2001
From: Oscar Gustafsson <oscar.gustafsson@gmail.com>
Date: Wed, 26 Apr 2023 16:21:43 +0200
Subject: [PATCH] Add MPL objects to window class

---
 b_asic/gui_utils/plot_window.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/b_asic/gui_utils/plot_window.py b/b_asic/gui_utils/plot_window.py
index 991baaea..c156411e 100644
--- a/b_asic/gui_utils/plot_window.py
+++ b/b_asic/gui_utils/plot_window.py
@@ -135,8 +135,9 @@ class PlotWindow(QWidget):
             self._lines[key] = line[0]
 
         self._plot_canvas = FigureCanvas(self._plot_fig)
+        self._toolbar = NavigationToolbar(self._plot_canvas, self)
 
-        plotlayout.addWidget(NavigationToolbar(self._plot_canvas, self))
+        plotlayout.addWidget(self._toolbar)
         plotlayout.addWidget(self._plot_canvas)
 
         ########### List layout: ##############
-- 
GitLab