sas.qtgui.Plotting.Masks package¶
Submodules¶
sas.qtgui.Plotting.Masks.BoxMask module¶
- class sas.qtgui.Plotting.Masks.BoxMask.BoxMask(base, axes, color='black', zorder=3, side=None, x_min=0.008, x_max=0.008, y_min=0.0025, y_max=0.0025)[source]¶
Bases:
BaseInteractor
BoxMask Class: determine 2 rectangular area to find the pixel of a Data inside of box.
Uses PointerInteractor , VerticalDoubleLine,HorizontalDoubleLine.
- Parameters:
zorder – Artists with lower zorder values are drawn first.
x_min – the minimum value of the x coordinate
x_max – the maximum value of the x coordinate
y_min – the minimum value of the y coordinate
y_max – the maximum value of the y coordinate
- __doc__ = '\n BoxMask Class: determine 2 rectangular area to find the pixel of\n a Data inside of box.\n\n Uses PointerInteractor , VerticalDoubleLine,HorizontalDoubleLine.\n\n :param zorder: Artists with lower zorder values are drawn first.\n :param x_min: the minimum value of the x coordinate\n :param x_max: the maximum value of the x coordinate\n :param y_min: the minimum value of the y coordinate\n :param y_max: the maximum value of the y coordinate\n\n '¶
- __init__(base, axes, color='black', zorder=3, side=None, x_min=0.008, x_max=0.008, y_min=0.0025, y_max=0.0025)[source]¶
- __module__ = 'sas.qtgui.Plotting.Masks.BoxMask'¶
- _post_data()[source]¶
Get the limits of the boxsum and compute the sum of the pixel contained in that region and the error on that sum
- get_params()[source]¶
Store a copy of values of parameters of the slicer into a dictionary.
- Return params:
the dictionary created
- moveend(ev)[source]¶
After a dragging motion this function is called to compute the error and the sum of pixel of a given data 2D
sas.qtgui.Plotting.Masks.CircularMask module¶
- class sas.qtgui.Plotting.Masks.CircularMask.CircularMask(base, axes, color='grey', zorder=3, side=None)[source]¶
Bases:
BaseInteractor
Draw a ring Given a radius
- __doc__ = '\n Draw a ring Given a radius\n '¶
- __init__(base, axes, color='grey', zorder=3, side=None)[source]¶
- Param:
the color of the line that defined the ring
- Parameters:
r – the radius of the ring
sign – the direction of motion the the marker
- __module__ = 'sas.qtgui.Plotting.Masks.CircularMask'¶
- _post_data()[source]¶
Uses annulus parameters to plot averaged data into 1D data.
- Parameters:
nbins – the number of points to plot
- getParams()[source]¶
Store a copy of values of parameters of the slicer into a dictionary.
- Return params:
the dictionary created
- moveend(ev)[source]¶
Called when any dragging motion ends. Post an event (type =SlicerParameterEvent) to plotter 2D with a copy slicer parameters Call _post_data method
sas.qtgui.Plotting.Masks.SectorMask module¶
Sector mask interactor
- class sas.qtgui.Plotting.Masks.SectorMask.SectorMask(base, axes, color='gray', zorder=3, side=False)[source]¶
Bases:
BaseInteractor
Draw a sector slicer.Allow to find the data 2D inside of the sector lines
- __doc__ = '\n Draw a sector slicer.Allow to find the data 2D inside of the sector lines\n '¶
- __module__ = 'sas.qtgui.Plotting.Masks.SectorMask'¶
- get_params()[source]¶
Store a copy of values of parameters of the slicer into a dictionary.
- Return params:
the dictionary created