prsctrl.data.plot.plot_rta#
- plot_rta(ref_data: ~prsctrl.data.prsdata.PrsData, tra_data: ~prsctrl.data.prsdata.PrsData, abs_data: ~prsctrl.data.prsdata.PrsData, fig: ~matplotlib.figure.Figure | None = None, axs: ~numpy.ndarray[tuple[~typing.Any, ...], ~numpy.dtype[~matplotlib.axes._axes.Axes]] | None = None, title: str | bool = True, single_ax: bool = False, subplots_kw: dict = {}, label: str | None = None, save_fig: bool | str = True, transforms: list[~typing.Callable[[~numpy.ndarray[tuple[~typing.Any, ...], ~numpy.dtype[~numpy._typing._array_like._ScalarT]], list[str]], tuple[~numpy.ndarray[tuple[~typing.Any, ...], ~numpy.dtype[~numpy._typing._array_like._ScalarT]], list[str]]]] = [<function remove_spectrum_outliers>, <function remove_invalid_points_from_spectrum>], **plot_spectrum_kw) tuple[Figure, Axes | ndarray[tuple[Any, ...], dtype[Axes]]][source]#
Convenience function that plots reflectance, transmittance and absorbance
- Parameters:
ref_data – Photoreflectance data.
tra_data – Phototransmittance data.
abs_data – Photoabsorbance data.
fig – Optional figure. If given, axs must be given as well.
axs – Optional axes. If given, fig must be given as well.
title – Optional title of the plot. If
Truea title is constructed from the data names.single_ax – Whether to plot all three datas onto a single axis/plot.
subplots_kw – Keyword arguments to pass to
plt.subplots()if no figure and axes are given.label – Label if the data. If
None, the data mode is used as label.save_fig – If
True, save in<series directory>/<full name without mode>.pdf. If a path is given, the plot is saved at the path.transforms – List of
transformsto apply to the data.plot_spectrum_kw – Keyword arguments to pass to
plot_spectrum_on_ax().
- Returns:
Figure, Axes.