plot_antagonist_muscle_comparison#
- plot_antagonist_muscle_comparison(
- results: Block,
- joint_angle: ndarray,
- time: ndarray,
- axs: Iterable[Axes],
- flexor_name: str = 'hill_flexor',
- extensor_name: str = 'hill_extensor',
- include_signals: list[str] = ['artAng', 'force', 'torque'],
- time_range: tuple[float, float] | None = None,
- title: str = 'Antagonist Muscle Comparison',
- xlabel: str = 'Time [ms]',
- apply_default_formatting: bool = True,
- **kwargs: Any,
Plot comparison of antagonist muscle dynamics.
- Parameters:
results (Block) – NEO Block containing both muscle model segments.
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).
flexor_name (str, optional) – Name of flexor muscle segment, by default “hill_flexor”.
extensor_name (str, optional) – Name of extensor muscle segment, by default “hill_extensor”.
include_signals (list[str], optional) – Signals to compare, by default [“artAng”, “force”, “torque”].
time_range (tuple[float, float], optional) – Time range to plot, by default None.
title (str, optional) – Plot title, by default “Antagonist Muscle Comparison”.
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]