Commit 9dd8869d authored by payno's avatar payno
Browse files

[gui] set plot data margins. close #17

parent 982ed8d3
Pipeline #38646 failed with stages
in 17 seconds
......@@ -193,6 +193,7 @@ class MapViewer(qt.QWidget):
qt.QWidget.__init__(self, parent=parent)
self.setLayout(qt.QVBoxLayout())
self._mainWindow = StackViewMainWindow(parent=parent)
self._mainWindow.getPlot().setDataMargins(5, 5, 5, 5)
self.layout().addWidget(self._mainWindow)
self.layout().setContentsMargins(0, 0, 0, 0)
self.layout().setSpacing(0.0)
......@@ -306,6 +307,7 @@ class SpectrumViewer(qt.QMainWindow):
qt.QMainWindow.__init__(self, parent)
self.xas_obj = None
self._plot = Plot1D(parent=self)
self._plot.setDataMargins(5, 5, 5, 5)
self.setCentralWidget(self._plot)
# frame browsers
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment