boxSlicer

sans.guiframe.local_perspectives.plotting.boxSlicer

class sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor

Bases: sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor

BoxInteractor define a rectangle that return data1D average of Data2D in a rectangle area defined by -x, x ,y, -y

__init__()
__module__ = 'sans.guiframe.local_perspectives.plotting.boxSlicer'
_onEVT_SLICER_PARS()

receive an event containing parameters values to reset the slicer

Parameters:event – event of type SlicerParameterEvent with params as attribute
_post_data()
clear()

Clear the slicer and all connected events related to this slicer

clear_markers()

Clear old markers and interfaces.

connect_markers()

Connect markers to callbacks

dpixel()

Return the step size in data coordinates for a small step in screen coordinates. If nudge is False (default) the step size is one pixel. If nudge is True, the step size is 0.2 pixels.

draw()
freeze_axes()
get_params()

Store a copy of values of parameters of the slicer into a dictionary.

Return params:the dictionary created
move()

Process move to a new position, making sure that the move is allowed.

moveend()

Called after a dragging event. Post the slicer new parameters and creates a new Data1D corresponding to the new average

onClick()

Prepare to move the artist. Calls save() to preserve the state for later restore().

onDrag()

Move the artist. Calls move() to update the state, or restore() if the mouse leaves the window.

onHilite()

Hilite the artist reporting the event, indicating that it is ready to receive a click.

onKey()

Respond to keyboard events. Arrow keys move the widget. Escape restores it to the position before the last click.

Calls move() to update the state. Calls restore() on escape.

onLeave()

Restore the artist to the original colour when the cursor leaves.

onRelease()
post_data()

post data averaging in Qx or Qy given new_slab type

Parameters:
  • new_slab – slicer that determine with direction to average
  • nbins – the number of points plotted when averaging
  • direction – the direction of averaging
restore()

Restore the roughness for this layer.

save()

Remember the roughness for this layer and the next so that we can restore on Esc.

set_cursor()
set_layer()

Allow adding plot to the same panel

Parameters:n – the number of layer
set_params()

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.
thaw_axes()
update()

Respond to changes in the model by recalculating the profiles and resetting the widgets.

update_and_post()

Update the slicer and plot the resulting data

class sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX

Bases: sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor

Average in Qx direction

__init__()
__module__ = 'sans.guiframe.local_perspectives.plotting.boxSlicer'
_onEVT_SLICER_PARS()

receive an event containing parameters values to reset the slicer

Parameters:event – event of type SlicerParameterEvent with params as attribute
_post_data()

Post data creating by averaging in Qx direction

clear()

Clear the slicer and all connected events related to this slicer

clear_markers()

Clear old markers and interfaces.

connect_markers()

Connect markers to callbacks

dpixel()

Return the step size in data coordinates for a small step in screen coordinates. If nudge is False (default) the step size is one pixel. If nudge is True, the step size is 0.2 pixels.

draw()
freeze_axes()
get_params()

Store a copy of values of parameters of the slicer into a dictionary.

Return params:the dictionary created
move()

Process move to a new position, making sure that the move is allowed.

moveend()

Called after a dragging event. Post the slicer new parameters and creates a new Data1D corresponding to the new average

onClick()

Prepare to move the artist. Calls save() to preserve the state for later restore().

onDrag()

Move the artist. Calls move() to update the state, or restore() if the mouse leaves the window.

onHilite()

Hilite the artist reporting the event, indicating that it is ready to receive a click.

onKey()

Respond to keyboard events. Arrow keys move the widget. Escape restores it to the position before the last click.

Calls move() to update the state. Calls restore() on escape.

onLeave()

Restore the artist to the original colour when the cursor leaves.

onRelease()
post_data()

post data averaging in Qx or Qy given new_slab type

Parameters:
  • new_slab – slicer that determine with direction to average
  • nbins – the number of points plotted when averaging
  • direction – the direction of averaging
restore()

Restore the roughness for this layer.

save()

Remember the roughness for this layer and the next so that we can restore on Esc.

set_cursor()
set_layer()

Allow adding plot to the same panel

Parameters:n – the number of layer
set_params()

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.
thaw_axes()
update()

Respond to changes in the model by recalculating the profiles and resetting the widgets.

update_and_post()

Update the slicer and plot the resulting data

class sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY

Bases: sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor

Average in Qy direction

__init__()
__module__ = 'sans.guiframe.local_perspectives.plotting.boxSlicer'
_onEVT_SLICER_PARS()

receive an event containing parameters values to reset the slicer

Parameters:event – event of type SlicerParameterEvent with params as attribute
_post_data()

Post data creating by averaging in Qy direction

clear()

Clear the slicer and all connected events related to this slicer

clear_markers()

Clear old markers and interfaces.

connect_markers()

Connect markers to callbacks

dpixel()

Return the step size in data coordinates for a small step in screen coordinates. If nudge is False (default) the step size is one pixel. If nudge is True, the step size is 0.2 pixels.

draw()
freeze_axes()
get_params()

Store a copy of values of parameters of the slicer into a dictionary.

Return params:the dictionary created
move()

Process move to a new position, making sure that the move is allowed.

moveend()

Called after a dragging event. Post the slicer new parameters and creates a new Data1D corresponding to the new average

onClick()

Prepare to move the artist. Calls save() to preserve the state for later restore().

onDrag()

Move the artist. Calls move() to update the state, or restore() if the mouse leaves the window.

onHilite()

Hilite the artist reporting the event, indicating that it is ready to receive a click.

onKey()

Respond to keyboard events. Arrow keys move the widget. Escape restores it to the position before the last click.

Calls move() to update the state. Calls restore() on escape.

onLeave()

Restore the artist to the original colour when the cursor leaves.

onRelease()
post_data()

post data averaging in Qx or Qy given new_slab type

Parameters:
  • new_slab – slicer that determine with direction to average
  • nbins – the number of points plotted when averaging
  • direction – the direction of averaging
restore()

Restore the roughness for this layer.

save()

Remember the roughness for this layer and the next so that we can restore on Esc.

set_cursor()
set_layer()

Allow adding plot to the same panel

Parameters:n – the number of layer
set_params()

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.
thaw_axes()
update()

Respond to changes in the model by recalculating the profiles and resetting the widgets.

update_and_post()

Update the slicer and plot the resulting data

class sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines

Bases: sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor

Draw 2 Horizontal lines centered on (0,0) that can move on the x- direction and in opposite direction

__init__()
__module__ = 'sans.guiframe.local_perspectives.plotting.boxSlicer'
clear()

Clear this slicer and its markers

clear_markers()

Clear old markers and interfaces.

connect_markers()

Connect markers to callbacks

dpixel()

Return the step size in data coordinates for a small step in screen coordinates. If nudge is False (default) the step size is one pixel. If nudge is True, the step size is 0.2 pixels.

move()

Process move to a new position, making sure that the move is allowed.

moveend()

Called after a dragging this edge and set self.has_move to False to specify the end of dragging motion

onClick()

Prepare to move the artist. Calls save() to preserve the state for later restore().

onDrag()

Move the artist. Calls move() to update the state, or restore() if the mouse leaves the window.

onHilite()

Hilite the artist reporting the event, indicating that it is ready to receive a click.

onKey()

Respond to keyboard events. Arrow keys move the widget. Escape restores it to the position before the last click.

Calls move() to update the state. Calls restore() on escape.

onLeave()

Restore the artist to the original colour when the cursor leaves.

onRelease()
restore()

Restore the roughness for this layer.

save()

Remember the roughness for this layer and the next so that we can restore on Esc.

set_layer()

Allow adding plot to the same panel

Parameters:n – the number of layer
update()

Draw the new roughness on the graph.

Parameters:
  • x – x-coordinates to reset current class x
  • y – y-coordinates to reset current class y
class sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines

Bases: sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor

Select an annulus through a 2D plot

__init__()
__module__ = 'sans.guiframe.local_perspectives.plotting.boxSlicer'
clear()

Clear this slicer and its markers

clear_markers()

Clear old markers and interfaces.

connect_markers()

Connect markers to callbacks

dpixel()

Return the step size in data coordinates for a small step in screen coordinates. If nudge is False (default) the step size is one pixel. If nudge is True, the step size is 0.2 pixels.

move()

Process move to a new position, making sure that the move is allowed.

moveend()

Called after a dragging this edge and set self.has_move to False to specify the end of dragging motion

onClick()

Prepare to move the artist. Calls save() to preserve the state for later restore().

onDrag()

Move the artist. Calls move() to update the state, or restore() if the mouse leaves the window.

onHilite()

Hilite the artist reporting the event, indicating that it is ready to receive a click.

onKey()

Respond to keyboard events. Arrow keys move the widget. Escape restores it to the position before the last click.

Calls move() to update the state. Calls restore() on escape.

onLeave()

Restore the artist to the original colour when the cursor leaves.

onRelease()
restore()

Restore the roughness for this layer.

save()

Remember the roughness for this layer and the next so that we can restore on Esc.

set_layer()

Allow adding plot to the same panel

Parameters:n – the number of layer
update()

Draw the new roughness on the graph.

Parameters:
  • x – x-coordinates to reset current class x
  • y – y-coordinates to reset current class y

Table Of Contents

Previous topic

boxMask

Next topic

boxSum

This Page