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
- clear()[source]
Clear the slicer and all connected events related to this slicer
- draw()[source]
- get_mask()[source]
return mask as a result of boxcut
- get_params()[source]
Store a copy of values of parameters of the slicer into a dictionary.
- Return params:
the dictionary created
- move(x, y, ev)[source]
Process move to a new position, making sure that the move is allowed.
- 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
- restore()[source]
Restore the roughness for this layer.
- save(ev)[source]
Remember the roughness for this layer and the next so that we can restore on Esc.
- set_cursor(x, y)[source]
- set_params(params)[source]
Receive a dictionary and reset the slicer with values contained in the values of the dictionary.
- Parameters:
params – a dictionary containing name of slicer parameters and values the user assigned to the slicer.
- update()[source]
Respond to changes in the model by recalculating the profiles and resetting the widgets.
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
- clear()[source]
Clear the slicer and all connected events related to this slicer
- draw()[source]
- getParams()[source]
Store a copy of values of parameters of the slicer into a dictionary.
- Return params:
the dictionary created
- move(x, y, ev)[source]
Process move to a new position, making sure that the move is allowed.
- 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
- restore()[source]
Restore the roughness for this layer.
- save(ev)[source]
Remember the roughness for this layer and the next so that we can restore on Esc.
- setParams(params)[source]
Receive a dictionary and reset the slicer with values contained in the values of the dictionary.
- Parameters:
params – a dictionary containing name of slicer parameters and values the user assigned to the slicer.
- set_cursor(x, y)[source]
- set_layer(n)[source]
Allow adding plot to the same panel :param n: the number of layer
- update()[source]
Respond to changes in the model by recalculating the profiles and resetting the widgets.
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 '
- __init__(base, axes, color='gray', zorder=3, side=False)[source]
- __module__ = 'sas.qtgui.Plotting.Masks.SectorMask'
- _post_data()[source]
compute sector averaging of data into data1D
- clear()[source]
Clear the slicer and all connected events related to this slicer
- draw()[source]
- get_params()[source]
Store a copy of values of parameters of the slicer into a dictionary.
- Return params:
the dictionary created
- move(x, y, ev)[source]
Process move to a new position, making sure that the move is allowed.
- moveend(ev)[source]
Called a dragging motion ends.Get slicer event
- restore()[source]
Restore the roughness for this layer.
- save(ev)[source]
Remember the roughness for this layer and the next so that we can restore on Esc.
- set_cursor(x, y)[source]
- set_params(params)[source]
Receive a dictionary and reset the slicer with values contained in the values of the dictionary.
- Parameters:
params – a dictionary containing name of slicer parameters and values the user assigned to the slicer.
- update()[source]
Respond to changes in the model by recalculating the profiles and resetting the widgets.