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 configurationdictshow (
bool) – When True (default) immediately display the figure viafig.show()– handy for interactive use. Tests can passshow=Falseto suppress GUI pop-ups.
- Return type:
Figure- Returns:
Plotly
go.Figureinstance- Raises:
ValueError – If required signals are missing from data