viz#
Draw signals, spectra, and figures in the app's plots.
annotate
#
annotate(
data: Signal1D
| Spectrum1D
| Figure
| ndarray
| list[float]
| list[int]
| tuple[ndarray, ndarray]
| tuple[list[float], list[float]],
title: str | None = None,
kind: Literal["signal", "spectrum", "auto"] = "auto",
id: str | None = None,
) -> None
Overlay a reference curve or charts.Figure on the plot without replacing or clearing existing data.
kind="auto" needs a Signal/Spectrum object; id targets a custom-page plot, not the main one.
clear_annotations
#
Remove overlay annotations (added with annotate) from scope ("all"/"signal"/"spectrum").
plot
#
plot(
data: Signal1D
| Spectrum1D
| Figure
| ndarray
| list[float]
| list[int]
| tuple[ndarray, ndarray]
| tuple[list[float], list[float]],
kind: Literal["signal", "spectrum", "auto"] = "auto",
title: str | None = None,
save_to_state: bool = True,
clear: bool = True,
id: str | None = None,
) -> None
Draw a signal, spectrum, or custom charts figure on the plot, replacing what's there.
kind="auto" needs a Signal/Spectrum object; id targets a custom-page plot, not the main one.
set_axes
#
Switch the signal and spectrum plot axes between linear and logarithmic scaling.
show_figure
#
show_figure(
figure: Figure | ndarray | bytes | bytearray | str,
id: str | None = None,
title: str | None = None,
dpi: int = 150,
width: int | None = None,
height: int | None = None,
) -> None
Display a figure (chart/image) in the analysis panel; same id replaces it (default: title).
show_table
#
show_table(
data: Any
| Mapping[str, Sequence[Any]]
| tuple[Sequence[str], Sequence[Sequence[Any]]]
| Sequence[Sequence[Any]],
id: str | None = None,
title: str | None = None,
caption: str | None = None,
) -> None
Display a table in the analysis panel; same id (default: title or "table") replaces it in place.