plot_muscle_dynamics#

plot_muscle_dynamics(
results: Block,
joint_angle: ndarray,
time: ndarray,
axs: Iterable[Axes],
muscle_name: str = 'hill',
include_signals: list[str] = ['artAng', 'L', 'force', 'torque'],
include_activations: list[str] = ['TypeI', 'TypeII'],
normalize: bool = True,
time_range: tuple[float, float] | None = None,
title: str = 'Muscle Hill Model Dynamics',
xlabel: str = 'Time [ms]',
apply_default_formatting: bool = True,
**kwargs: Any,
) Iterable[Axes][source]#

Plot muscle dynamics from Hill model.

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

  • joint_angle (np.ndarray) – Joint angle time series data.

  • time (np.ndarray) – Time vector in milliseconds.

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

  • muscle_name (str, optional) – Name of muscle segment to plot, by default “hill”.

  • include_signals (list[str], optional) – Signals to plot, by default [“artAng”, “L”, “force”, “torque”].

  • include_activations (list[str], optional) – Activation types to plot, by default [“TypeI”, “TypeII”].

  • normalize (bool, optional) – Whether to normalize signals, by default True.

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

  • title (str, optional) – Plot title, by default “Muscle Hill 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]