Skip to content

Commit c9487fd

Browse files
pop-up plot widget, expand textbrowser view
1 parent 4a58856 commit c9487fd

File tree

2 files changed

+164
-137
lines changed

2 files changed

+164
-137
lines changed

PythonGUI_apps/Spectrum_analysis/Spectra_plot_fit.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ def __init__(self):
113113
# for i in reversed(range(self.ui.bounds_groupBox.layout().count())):
114114
# self.ui.bounds_groupBox.layout().itemAt(i).widget().deleteLater()
115115
#self.ui.single_bounds_page.layout().addWidget(QtWidgets.QPushButton("test"))
116+
117+
self.ui.plot = pg.PlotWidget()
118+
self.ui.plot.setTitle(title="Spectrum Plot")
119+
#self.ui.plot.show()
116120

117121
self.file = None
118122
self.bck_file = None
@@ -366,7 +370,7 @@ def plot(self):
366370
self.normalize()
367371

368372
self.check_eV_state()
369-
373+
self.ui.plot.show()
370374
self.ui.plot.plot(self.x, self.y, clear=self.clear_check(), pen='r')
371375

372376
except Exception as e:

0 commit comments

Comments
 (0)