plotting

scalenav.plotting.cmap(input, palette, log=False, pydeck=True, factorize=False)

Provide colormap for deckgl plotting.

Parameters:
  • input (a list or pandas.Series of numeric values)

  • palette (a palette from matplotlib.colors, pypalettes, or a palette name from https://python-graph-gallery.com/color-palette-finder/.)

  • log (whether the scale should be logarithmic)

  • pydeck (whether or not the colors are for pydeck maps. If true, the returned color values are integers between 0 and 255 instead of floats between 0 and 1.)

  • factorize (bool)

Return type:

a list containting lists of length 3 with r,g,b values between 0 and 255 for each value from input.