summaryrefslogtreecommitdiff
path: root/silx/gui/plot/ImageView.py
diff options
context:
space:
mode:
Diffstat (limited to 'silx/gui/plot/ImageView.py')
-rw-r--r--silx/gui/plot/ImageView.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/silx/gui/plot/ImageView.py b/silx/gui/plot/ImageView.py
index c28ffca..eba9bc6 100644
--- a/silx/gui/plot/ImageView.py
+++ b/silx/gui/plot/ImageView.py
@@ -315,7 +315,7 @@ class ImageView(PlotWindow):
def _initWidgets(self, backend):
"""Set-up layout and plots."""
- self._histoHPlot = PlotWidget(backend=backend)
+ self._histoHPlot = PlotWidget(backend=backend, parent=self)
self._histoHPlot.getWidgetHandle().setMinimumHeight(
self.HISTOGRAMS_HEIGHT)
self._histoHPlot.getWidgetHandle().setMaximumHeight(
@@ -330,7 +330,7 @@ class ImageView(PlotWindow):
self.getYAxis().sigInvertedChanged.connect(self._updateYAxisInverted)
self.sigActiveImageChanged.connect(self._activeImageChangedSlot)
- self._histoVPlot = PlotWidget(backend=backend)
+ self._histoVPlot = PlotWidget(backend=backend, parent=self)
self._histoVPlot.getWidgetHandle().setMinimumWidth(
self.HISTOGRAMS_HEIGHT)
self._histoVPlot.getWidgetHandle().setMaximumWidth(
@@ -338,14 +338,15 @@ class ImageView(PlotWindow):
self._histoVPlot.setInteractiveMode('zoom')
self._histoVPlot.sigPlotSignal.connect(self._histoVPlotCB)
- self._radarView = RadarView()
+ self._radarView = RadarView(parent=self)
self._radarView.visibleRectDragged.connect(self._radarViewCB)
layout = qt.QGridLayout()
layout.addWidget(self.getWidgetHandle(), 0, 0)
layout.addWidget(self._histoVPlot.getWidgetHandle(), 0, 1)
layout.addWidget(self._histoHPlot.getWidgetHandle(), 1, 0)
- layout.addWidget(self._radarView, 1, 1)
+ layout.addWidget(self._radarView, 1, 1, 1, 2)
+ layout.addWidget(self.getColorBarWidget(), 0, 2)
layout.setColumnMinimumWidth(0, self.IMAGE_MIN_SIZE)
layout.setColumnStretch(0, 1)