yaml2plot.plot

yaml2plot.plot(data, spec, *, show=True)[source]

Create Plotly figure from data and PlotSpec configuration.

Parameters:
  • data (Union[Dict[str, ndarray], str, Path, Dataset]) – Data source - can be: - Dict mapping signal name → numpy array - Raw file path (str/Path) - xarray Dataset (preferred for new code)

  • spec (Union[PlotSpec, Dict[str, Any]]) – PlotSpec configuration object or raw configuration dict

  • show (bool) – When True (default) immediately display the figure via fig.show() – handy for interactive use. Tests can pass show=False to suppress GUI pop-ups.

Return type:

Figure

Returns:

Plotly go.Figure instance

Raises:

ValueError – If required signals are missing from data