plot_spindle_dynamics#

plot_spindle_dynamics(
results: Block,
axs: Iterable[Axes],
muscle_name: str = 'hill_flexor',
include_signals: list[str] = ['L'],
include_activations: list[str] = ['Bag1', 'Bag2', 'Chain'],
include_tensions: list[str] = ['Bag1', 'Bag2', 'Chain'],
include_afferents: list[str] = ['Ia', 'II'],
time_range: tuple[float, float] | None = None,
title: str = 'Spindle Model Dynamics',
xlabel: str = 'Time [ms]',
apply_default_formatting: bool = True,
**kwargs: Any,
) Iterable[Axes][source]#

Plot spindle model dynamics.

Parameters:
  • results (Block) – NEO Block containing spindle model segment.

  • axs (IterableType[Axes]) – Matplotlib axes to plot on (one per signal group).

  • muscle_name (str, optional) – Name of muscle segment to use for length and time data, by default “hill_flexor”.

  • include_signals (list[str], optional) – Basic signals to plot, by default [“L”].

  • include_activations (list[str], optional) – Intrafusal activations to plot, by default [“Bag1”, “Bag2”, “Chain”].

  • include_tensions (list[str], optional) – Intrafusal tensions to plot, by default [“Bag1”, “Bag2”, “Chain”].

  • include_afferents (list[str], optional) – Afferent firing rates to plot, by default [“Ia”, “II”].

  • time_range (tuple[float, float], optional) – Time range to plot, by default None.

  • title (str, optional) – Plot title, by default “Spindle Model Dynamics”.

  • xlabel (str, optional) – X-axis label, by default “Time [ms]”.

  • apply_default_formatting (bool, optional) – Whether to apply default formatting, by default True.

  • **kwargs (Any) – Additional keyword arguments passed to matplotlib plot functions.

Returns:

The axes that were plotted on.

Return type:

IterableType[Axes]