From eb817d3d173df64165a7c19e9c7bec24721848a9 Mon Sep 17 00:00:00 2001 From: TheMightyRaider Date: Sun, 22 Dec 2024 23:37:40 +0530 Subject: [PATCH] enhance: sideview and linearview plot to display operation name --- mslib/msui/linearview.py | 1 + mslib/msui/sideview.py | 1 + 2 files changed, 2 insertions(+) diff --git a/mslib/msui/linearview.py b/mslib/msui/linearview.py index 2d413a7d1..0221e1689 100644 --- a/mslib/msui/linearview.py +++ b/mslib/msui/linearview.py @@ -97,6 +97,7 @@ def __init__(self, parent=None, mainwindow=None, model=None, _id=None, config_se self.setupUi(self) self.setWindowIcon(QtGui.QIcon(icons('64x64'))) + self.mpl.canvas.plotter.fig.suptitle(f"{model.name}") # Dock windows [WMS]: self.cbTools.clear() diff --git a/mslib/msui/sideview.py b/mslib/msui/sideview.py index 54778c70d..62d287cc5 100644 --- a/mslib/msui/sideview.py +++ b/mslib/msui/sideview.py @@ -298,6 +298,7 @@ def __init__(self, parent=None, mainwindow=None, model=None, _id=None, config_se super().__init__(parent, model, _id) self.tutorial_mode = tutorial_mode self.setupUi(self) + self.mpl.canvas.plotter.fig.suptitle(f"{model.name}") self.setWindowIcon(QtGui.QIcon(icons('64x64'))) self.settings_tag = "sideview" # Dock windows [WMS]: