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 withget_stick_scale()so that the strong sticks span theplot.stick_lengthfraction of the axes width.color (None, color) – Color of the sticks, which defaults to the
plot.stick_coloroptionkwargs – Extra parameters are passed to
matplotlib.axes.Axes.quiver()
- Returns:
matplotlib.quiver.Quiver