spvctrl.data.plot.plot_stack#

plot_stack(datas: list[TspvData], xlog: bool = False, what: str = 'U_spv_V', ax=None, **kw) → tuple[source]#

Plot multiple transients stacked in the same plot.

Transients are stacked with a span-based offset and colored by wavelength, extracted from the hierarchy variant key (wl=<value>nm) if present.

Parameters:
  • datas – List of TspvData to plot

  • xlog – Whether to use a logarithmic x axis

  • what – Column key to plot, default “U_spv_V”

  • ax – Axis to plot in, or None to create a new figure

  • kw – Passed on to ax.plot

Returns:

figure, axis