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 plotaxis (
int, optional) – The axis to use for the distribution, by default 0mode (
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 Nonetimes (
Doubles, optional) – The times to use for the x-axis, by default Nonelabel (
Union[str,int,float], optional) – The label for the signal, by default Nonecolor (
Union[str,list[int]], optional) – The color to use for the signal, by default Noneax (
plt.Axes, optional) – The axes to plot on, by default None
- Returns:
The axes containing the plot
- Return type:
plt.Axes