Utility functions, toolbars and actions to create profile on images and stacks of images
Bases: PyQt4.QtGui.QToolBar
QToolBar providing profile tools operating on a PlotWindow.
Attributes:
To run the following sample code, a QApplication must be initialized. First, create a PlotWindow and add a ProfileToolBar.
>>> from silx.gui.plot import PlotWindow
>>> from silx.gui.plot.Profile import ProfileToolBar
>>> from silx.gui import qt
>>> plot = PlotWindow() # Create a PlotWindow
>>> toolBar = ProfileToolBar(plot=plot) # Create a profile toolbar
>>> plot.addToolBar(toolBar) # Add it to plot
>>> plot.show() # To display the PlotWindow with the profile toolbar
Parameters: |
|
---|
Observe when the close event is emitted to clear the profile
Parameters: |
|
---|
The color to use for the ROI.
If set to None (the default), the overlay color is adapted to the active image colormap and changes if the active image colormap changes.
Bases: silx.gui.plot.Profile.ProfileToolBar
Observe the show and hide events of the widgets related to the profile plot (a container widget, a Plot1D and a Plot2D)
Parameters: |
|
---|
Method overloaded from ProfileToolBar, to pass the stack of images instead of just the active image.
In 1D profile mode, use the regular parent method.