From 650f8ef7cc3e236a7c722e768ea8bfce1e85aa1e Mon Sep 17 00:00:00 2001 From: "Ryan@SOLARIS_testStation" Date: Tue, 5 Nov 2024 10:53:48 -0500 Subject: [PATCH] default show gridline --- PyGUIQt6/MatPlotLibWindow.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/PyGUIQt6/MatPlotLibWindow.py b/PyGUIQt6/MatPlotLibWindow.py index fef442a..5d199f4 100644 --- a/PyGUIQt6/MatPlotLibWindow.py +++ b/PyGUIQt6/MatPlotLibWindow.py @@ -27,16 +27,17 @@ class MatPlotLibWindow(QWidget): self.canvas = FigureCanvas(self.figure) self.toolbar = NavigationToolbar(self.canvas, self) + self.showMarker_checkBox = QCheckBox("Show Markers") + self.showMarker_checkBox.stateChanged.connect(self.plot_matplotlib_graph) + self.log_scale_checkbox = QCheckBox("Use Log Scale for Y-Axis") self.log_scale_checkbox.setChecked(True) self.log_scale_checkbox.stateChanged.connect(self.plot_matplotlib_graph) self.gridline_checkbox = QCheckBox("Show Gridlines") + self.gridline_checkbox.setChecked(True) self.gridline_checkbox.stateChanged.connect(self.plot_matplotlib_graph) - self.showMarker_checkBox = QCheckBox("Show Markers") - self.showMarker_checkBox.setChecked(True) - self.showMarker_checkBox.stateChanged.connect(self.plot_matplotlib_graph) layout = QGridLayout(self) layout.addWidget(self.toolbar, 0, 0, 1, 3)