Skip to content

Commit

Permalink
pop-up plot widget, expand textbrowser view
Browse files Browse the repository at this point in the history
  • Loading branch information
SarthakJariwala committed Mar 17, 2020
1 parent 4a58856 commit c9487fd
Show file tree
Hide file tree
Showing 2 changed files with 164 additions and 137 deletions.
6 changes: 5 additions & 1 deletion PythonGUI_apps/Spectrum_analysis/Spectra_plot_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ def __init__(self):
# for i in reversed(range(self.ui.bounds_groupBox.layout().count())):
# self.ui.bounds_groupBox.layout().itemAt(i).widget().deleteLater()
#self.ui.single_bounds_page.layout().addWidget(QtWidgets.QPushButton("test"))

self.ui.plot = pg.PlotWidget()
self.ui.plot.setTitle(title="Spectrum Plot")
#self.ui.plot.show()

self.file = None
self.bck_file = None
Expand Down Expand Up @@ -366,7 +370,7 @@ def plot(self):
self.normalize()

self.check_eV_state()

self.ui.plot.show()
self.ui.plot.plot(self.x, self.y, clear=self.clear_check(), pen='r')

except Exception as e:
Expand Down
Loading

0 comments on commit c9487fd

Please sign in to comment.