silx.gui.plot.actions.fit¶
silx.gui.plot.actions.fit module provides actions relative to fit.
The following QAction are available:
- 
class FitAction(plot, parent=None)[source]¶
- QAction to open a - FitWidgetand set its data to the active curve if any, or to the first curve.- Parameters: - plot – PlotWidgetinstance on which to operate
- parent – See QAction
 - 
setXRangeUpdatedOnZoom(enabled)[source]¶
- Set whether or not to update the X range on zoom change. - Parameters: - enabled (bool) – 
 - 
isXRangeUpdatedOnZoom()[source]¶
- Returns the current mode of fitted data X range update. - Return type: - bool 
 - 
getXData(copy=True)[source]¶
- Returns the X data used for the fit or None if undefined. - Parameters: - copy (bool) – True to get a copy of the data, False to get the internal data. - Return type: - Union[numpy.ndarray,None] 
 - 
getYData(copy=True)[source]¶
- Returns the Y data used for the fit or None if undefined. - Parameters: - copy (bool) – True to get a copy of the data, False to get the internal data. - Return type: - Union[numpy.ndarray,None] 
 
- plot – 
