tedana.reporting.static_figures.plot_component

plot_component(*, stat_img, component_timeseries, power_spectrum, frequencies, tr, classification_color, png_cmap, title, out_file)[source]

Create a figure with a component’s spatial map, time series, and power spectrum.

Parameters:
  • stat_img (nibabel.Nifti1Image) – Image of the component’s spatial map

  • component_timeseries ((T,) array_like) – Time series of the component

  • power_spectrum ((T,) array_like) – Power spectrum of the component’s time series

  • frequencies ((T,) array_like) – Frequencies for the power spectrum

  • tr (float) – Repetition time of the time series

  • classification_color (str) – Color to use for the time series and power spectrum

  • png_cmap (str) – Colormap to use for the spatial map

  • title (str) – Title for the figure

  • out_file (str) – Path to save the figure