StatsWidget: Display a set of statictics for plot items¶
Module containing widgets displaying stats from items of a plot.
StatsWidget class¶
-
class
silx.gui.plot.StatsWidget.StatsWidget(parent=None, plot=None, stats=None)[source]¶ Bases:
PyQt5.QtWidgets.QWidgetWidget displaying a set of
Statto be displayed on aStatsTableand to be apply on items contained in thePlotAlso contains options to:- compute statistics on all the data or on visible data only
- show statistics of all items or only the active one
Parameters: - parent – Qt parent
- plot – the plot containing items on which we want statistics.
BasicStatsWidget class¶
-
class
silx.gui.plot.StatsWidget.BasicStatsWidget(parent=None, plot=None)[source]¶ Bases:
silx.gui.plot.StatsWidget.StatsWidgetWidget defining a simple set of
Statto be displayed on aStatsWidget.Parameters: - parent – Qt parent
- plot – the plot containing items on which we want statistics.
StatsTable class¶
-
class
silx.gui.plot.StatsWidget.StatsTable(parent=None, plot=None)[source]¶ Bases:
silx.gui.widgets.TableWidget.TableWidgetTableWidget displaying for each curves contained by the Plot some information:
- legend
- minimal value
- maximal value
- standard deviation (std)
Parameters: - parent – The widget’s parent.
- plot –
PlotWidgetinstance on which to operate
-
callbackCurve= None¶ Associate the curve legend to his first item
-
setStats(statsHandler)[source]¶ Parameters: statsHandler – Set the statistics to be displayed and how to format them using Return type: StatsHandler
-
setPlot(plot)[source]¶ Define the plot to interact with
Parameters: plot – the plot containing the items on which statistics are applied Return type: PlotWidget
-
setDisplayOnlyActiveItem(displayOnlyActItem)[source]¶ Parameters: displayOnlyActItem (bool) – True if we want to only show active item
-
setStatsOnVisibleData(b)[source]¶ Warning
When visible data is activated we will process to a simple filtering of visible data by the user. The filtering is a simple data sub-sampling. No interpolation is made to fit data to boundaries.
Parameters: b (bool) – True if we want to apply statistics only on visible data