animatplot.blocks.Nuke¶
-
class
animatplot.blocks.
Nuke
(func, axis, length, fargs=[])[source]¶ For when the other blocks just won’t do
The block will clear the axis and redraw using a provided function on every frame. This block can be used with other blocks so long as other blocks are attached to a different axis.
Only use this block as a last resort. Using the block is like nuking an ant hill. Hence the name.
Parameters: - func (callable) – The first argument to this function must be an integer representing the frame number.
- axis (a matplotlib axis, optional) –
- length (int) – the number of frames to display
- fargs (list, optional) – a list of arguments to pass into func
Methods
__init__
Initialize self.