Palettes functions

spatialtis.plotting.get_colors(n, palette)[source]

Get numbers of color from palettes

Parameters
  • n (int) – Number of colors to generate

  • palette (Union[Sequence, str]) – A palette or a serial of palettes

Return type

List[str]

spatialtis.plotting.get_linear_colors(palette)[source]

Gradient colors from a gradient palette

Parameters

palette (Union[Sequence, str]) – A palette or a serial of palettes

Return type

List[str]