spectrochempy.plot

plot(dataset, method=None, backend='matplotlib', **kwargs)[source]

Route plotting to the appropriate backend.

Parameters:
  • dataset (NDDataset) – The dataset to plot.

  • method (str, optional) – Plotting method (e.g., “pen”, “stack”, “surface”). If None, method is chosen based on data dimensionality.

  • backend (str, optional) – Backend to use (“matplotlib”). Default is “matplotlib”.

  • **kwargs – Additional arguments passed to the plotting function.

Returns:

Any – The matplotlib axes or appropriate return value from the backend.