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
>>> 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: |
|
---|
Return plot widget in which the profile curve or the profile image is plotted.
Return window containing the profile curve widget. This can return None if a custom profile plot window was specified in the constructor.
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
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.