Skip to content

Commit

Permalink
correction
Browse files Browse the repository at this point in the history
  • Loading branch information
Edgar Gutierrez Fernandez committed Sep 26, 2024
1 parent fa45a02 commit 6216f46
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/silx/gui/data/DataViews.py
Original file line number Diff line number Diff line change
Expand Up @@ -1826,30 +1826,8 @@ def createWidget(self, parent):
self.defaultColorDialog()
)

self.__aggregationModeAction = AggregationModeAction(parent=widget.getPlot())
widget.getPlot().toolBar().addAction(self.__aggregationModeAction)
self.__aggregationModeAction.setVisible(True)
#self.__aggregationModeAction.sigAggregationModeChanged.connect(self._aggregationModeChanged)

return widget

def getAggregationModeAction(self):
"""Action toggling the aggregation mode action
:rtype: actions.PlotAction
"""
return self.__aggregationModeAction

def _aggregationModeChanged(self):
plot = self.getWidget().getPlot()
item = plot._getItem("image")

if item is None:
return

aggregationMode = self.getAggregationModeAction().getAggregationMode()
item.setAggregationMode(aggregationMode)

def axesNames(self, data, info):
# disabled (used by default axis selector widget in Hdf5Viewer)
return None
Expand Down

0 comments on commit 6216f46

Please sign in to comment.