plot_weight_dist

plot_weight_dist(data: ~numpy.ndarray, label: ~numpy.ndarray, mode: str = 'sem', mask: ~numpy.ndarray = None, times: tuple[float, float] | list[float, float] | ~numpy.ndarray[(2, ), float] = None, sig_titles: list[str] = None, colors: list[str | list[int]] = None, ax=None) -> (<class 'matplotlib.figure.Figure'>, <class 'matplotlib.axes._axes.Axes'>)[source][source]

Basic distribution plot for weighted signals

Parameters:
  • data (np.ndarray) – The data to plot

  • label (np.ndarray) – The labels for the data

  • 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

  • sig_titles (list[str], optional) – The titles for the signals, by default None

  • colors (list[str | list[int]], optional) – The colors for the signals, by default None

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

Returns:

  • plt.Figure – The figure containing the plot

  • plt.Axes – The axes containing the plot

Return type:

(<class ‘matplotlib.figure.Figure’>, <class ‘matplotlib.axes._axes.Axes’>)