animatplot.blocks.Quiver

class animatplot.blocks.Quiver(X, Y, U, V, ax=None, t_axis=0, **kwargs)[source]

A block for animated quiver plots

Parameters:
  • X (1D or 2D numpy array) – The x positions of the arrows. Cannot be animated.
  • Y (1D or 2D numpy array) – The y positions of the arrows. Cannot be animated.
  • U (2D or 3D numpy array) – The U displacement of the arrows. 1 dimension higher than the X, Y arrays.
  • V (2D or 3D numpy array) – The V displcement of the arrows. 1 dimension higher than the X, Y arrays.
  • ax (matplotlib.axes.Axes, optional) – The matplotlib axes to the block to. Defaults to matplotlib.pyplot.gca()
  • t_axis (int, optional) – The axis of the array that represents time. Defaults to 0. No effect if U, V are lists.
ax

matplotlib.axes.Axes – The matplotlib axes that the block is attached to.

Notes

This block accepts additional keyword arguments to be passed to matplotlib.axes.Axes.quiver()

Methods

__init__ Initialize self.
__init__(X, Y, U, V, ax=None, t_axis=0, **kwargs)[source]

Initialize self. See help(type(self)) for accurate signature.