xoa.core.plot.plot_sticks

Contents

xoa.core.plot.plot_sticks#

xoa.core.plot.plot_sticks(ax, x, u, v, scale=None, color=None, **kwargs)[source]#

Plot vectors as sticks anchored at y=0

Parameters:
  • ax (matplotlib.axes.Axes)

  • x (array_like(n)) – Positions along the horizontal axis

  • u (array_like(n)) – Components of the vectors

  • v (array_like(n)) – Components of the vectors

  • scale (None, float) – Scale passed to matplotlib.axes.Axes.quiver(): the smaller, the longer the sticks. When None, it is computed with get_stick_scale() so that the strong sticks span the plot.stick_length fraction of the axes width.

  • color (None, color) – Color of the sticks, which defaults to the plot.stick_color option

  • kwargs – Extra parameters are passed to matplotlib.axes.Axes.quiver()

Returns:

matplotlib.quiver.Quiver