cellestial.slice#

slice(grid: SupPlotsSpec, index: int | Sequence[int], **kwargs) PlotSpec | SupPlotsSpec | None#

Slice a ggrid (SupPlotsSpec) objects with given index.

Parameters:
Returns:

PlotSpec | SupPlotsSpec – The sliced grid.

Raises:

TypeError – If the grid is not a SupPlotsSpec object. If the index is not an int or Sequence[int].