Skip to content

Commit

Permalink
Make the image active to enable mask and histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 committed Nov 18, 2024
1 parent bb290ad commit e6868fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/silx/gui/data/DataViews.py
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,7 @@ def createWidget(self, parent):
self.__imageItem.setName("data")
self.__imageItem.setColormap(widget.getDefaultColormap())
widget.addItem(self.__imageItem)
widget.setActiveImage(self.__imageItem)

widget.setKeepDataAspectRatio(True)
widget.getXAxis().setLabel("X")
Expand Down
1 change: 1 addition & 0 deletions src/silx/gui/data/NXdataWidgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ def _updateImage(self):
imageItem.setColormap(self._plot.getDefaultColormap())
imageItem.setAggregationMode(self.getAggregationModeAction().getAggregationMode())
self._plot.addItem(imageItem)
self._plot.setActiveImage(imageItem)
else:
xaxisscale, yaxisscale = self._axis_scales

Expand Down

0 comments on commit e6868fe

Please sign in to comment.