xoa.plot.plot_stick

Contents

xoa.plot.plot_stick#

xoa.plot.plot_stick(u, v=None, ax=None, scale=None, color=None, key=True, key_pos=None, **kwargs)[source]#

Plot a current time series as sticks

Each vector is drawn as a stick anchored at y=0, oriented along the current and scaled by its speed. This shows the direction and intensity of the currents, like tidal ones, along a single axis.

Parameters:
Returns:

matplotlib.quiver.Quiver

Example

plot_stick(ds.u, ds.v, scale=2.0)
plot_stick(ds)  # u and v are searched

See also

plot_flow