plopp.superplot#

plopp.superplot(obj, keep=None, **kwargs)[source]#

Plot a multi-dimensional object as a one-dimensional line, slicing all but one dimension. This will produce one slider per sliced dimension, below the figure. In addition, a tool for saving the currently displayed line is added on the right hand side of the figure.

Parameters:
  • obj (Union[Variable, DataArray, Dataset, DataGroup, ndarray, Node]) – The object to be plotted.

  • keep (Optional[str], default: None) – The single dimension to be kept, all remaining dimensions will be sliced. This should be a single string. If no dim is provided, the last/inner dim will be kept.

  • **kwargs – See plopp.plot() for the full list of line customization arguments.

Returns:

FigureLike – A widgets.Box which will contain a graphics.FigLine, slider widgets and a tool to save/delete lines.