plot_dist

plot_dist(mat: iter, axis: int = 0, mode: str = 'sem', mask: ndarray = None, times: tuple[float, float] | list[float, float] | ndarray[2, float] = None, label: str | int | float = None, color: str | list[int] = None, ax: Axes = None, **kwargs) Axes[source][source]

Plot the distribution for a single signal

A distribution is the mean of the signal over the last dimension, with optional masking

Parameters:
  • mat (iter) – The signal to plot

  • axis (int, optional) – The axis to use for the distribution, by default 0

  • mode (str, optional) – The mode to use for the distribution, by default ‘sem’

  • mask (np.ndarray, optional) – The mask to use for the distribution, by default None

  • times (Doubles, optional) – The times to use for the x-axis, by default None

  • label (Union[str, int, float], optional) – The label for the signal, by default None

  • color (Union[str, list[int]], optional) – The color to use for the signal, by default None

  • ax (plt.Axes, optional) – The axes to plot on, by default None

Returns:

The axes containing the plot

Return type:

plt.Axes