From f016e3ac6e978aef5bc66b2d95dbc03b13328e26 Mon Sep 17 00:00:00 2001
From: Andreas Eknes Lie <andrli@equinor.com>
Date: Wed, 25 Sep 2024 16:12:09 +0200
Subject: [PATCH] Remove Plot tool

---
 src/ert/gui/simulation/run_dialog.py |  7 -------
 src/ert/gui/tools/plot/__init__.py   |  2 --
 src/ert/gui/tools/plot/plot_tool.py  | 19 -------------------
 3 files changed, 28 deletions(-)
 delete mode 100644 src/ert/gui/tools/plot/plot_tool.py

diff --git a/src/ert/gui/simulation/run_dialog.py b/src/ert/gui/simulation/run_dialog.py
index b630bedc731..d3f43e59d46 100644
--- a/src/ert/gui/simulation/run_dialog.py
+++ b/src/ert/gui/simulation/run_dialog.py
@@ -53,7 +53,6 @@
     SnapshotModel,
 )
 from ert.gui.tools.file import FileDialog
-from ert.gui.tools.plot.plot_tool import PlotTool
 from ert.run_models import (
     BaseRunModel,
     RunModelStatusEvent,
@@ -225,11 +224,6 @@ def __init__(
         self.running_time = QLabel("")
         self.memory_usage = QLabel("")
 
-        self.plot_tool = PlotTool(config_file, self.parent())  # type: ignore
-        self.plot_button = QPushButton(self.plot_tool.getName())
-        self.plot_button.clicked.connect(self.plot_tool.trigger)
-        self.plot_button.setEnabled(True)
-
         self.kill_button = QPushButton("Terminate experiment")
         self.done_button = QPushButton("Done")
         self.done_button.setHidden(True)
@@ -258,7 +252,6 @@ def __init__(
         button_layout.addWidget(self.memory_usage)
         button_layout.addStretch()
         button_layout.addWidget(self.copy_debug_info_button)
-        button_layout.addWidget(self.plot_button)
         button_layout.addWidget(self.kill_button)
         button_layout.addWidget(self.done_button)
         button_layout.addWidget(self.restart_button)
diff --git a/src/ert/gui/tools/plot/__init__.py b/src/ert/gui/tools/plot/__init__.py
index 58696601135..408d4a37eb0 100644
--- a/src/ert/gui/tools/plot/__init__.py
+++ b/src/ert/gui/tools/plot/__init__.py
@@ -1,13 +1,11 @@
 from .color_chooser import ColorBox
 from .filter_popup import FilterPopup
 from .filterable_kw_list_model import FilterableKwListModel
-from .plot_tool import PlotTool
 from .style_chooser import StyleChooser
 
 __all__ = [
     "ColorBox",
     "FilterPopup",
     "FilterableKwListModel",
-    "PlotTool",
     "StyleChooser",
 ]
diff --git a/src/ert/gui/tools/plot/plot_tool.py b/src/ert/gui/tools/plot/plot_tool.py
deleted file mode 100644
index 830ea9d40c1..00000000000
--- a/src/ert/gui/tools/plot/plot_tool.py
+++ /dev/null
@@ -1,19 +0,0 @@
-from typing import Optional
-
-from qtpy.QtGui import QIcon
-from qtpy.QtWidgets import QWidget
-
-from ert.gui.tools import Tool
-
-from .plot_window import PlotWindow
-
-
-class PlotTool(Tool):
-    def __init__(self, config_file: str, main_window: Optional[QWidget]):
-        super().__init__("Create plot", QIcon("img:timeline.svg"))
-        self._config_file = config_file
-        self.main_window = main_window
-
-    def trigger(self) -> None:
-        plot_window = PlotWindow(self._config_file, self.main_window)
-        plot_window.show()