cellestial.get_mapping#

get_mapping(plot: PlotSpec, *, index: int = 0) dict#

Returns the mapping of the plot as a dict.

Parameters:
  • plot (PlotSpec) – The plot to get mapping from.

  • index (int, default 0) – index of the layer to get the local mapping from.

Returns:

dict – The combined mapping of the plot as a dict.