mechanochat.plotting.plot_grid_signal_direction#
- mechanochat.plotting.plot_grid_signal_direction(Xgrid, Vgrid, rs: Literal['receiver', 'sender'], color='k', scale=1., scale_units='x', ax=None)[source]#
Quiver plot of the grid-level signal directions from tl.signal_direction.
- Parameters:
Xgrid (
ndarray) – (n_grid, 2) grid positionsVgrid (
ndarray) – (n_grid, 2) mean signal direction per grid cellrs (
{'receiver', 'sender'}) – Anchoring of the arrow on the grid point: ‘receiver’ puts the tip on it (the signal arrives), ‘sender’ puts the tail on it (the signal leaves)color (
color, default'k') – Arrow colorscale (
float, default1.) – Quiver scale; larger values give shorter arrowsscale_units (
str, default'x') – Quiver scale unitsax (
Axes, optional) – Target matplotlib axes object. Creates new figure if None
- Returns:
ax (
Axes)