cellestial.slice#
- slice(grid: SupPlotsSpec, index: int | Sequence[int], **kwargs) PlotSpec | SupPlotsSpec | None#
Slice a ggrid (SupPlotsSpec) objects with given index.
- Parameters:
grid (
SupPlotsSpec) – The grid to slice.index (
int | Sequence[int]) – The index or indices of the plots to slice.**kwargs (
dict[str,Any]) – Additional arguments for the gggrid function. see: https://lets-plot.org/python/pages/api/lets_plot.gggrid.html
- 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].