watex.utils.plotutils.get_color_palette#

watex.utils.plotutils.get_color_palette(RGB_color_palette)[source]#

Convert RGB color into matplotlib color palette. In the RGB color system two bits of data are used for each color, red, green, and blue. That means that each color runson a scale from 0 to 255. Black would be 00,00,00, while white would be 255,255,255. Matplotlib has lots of pre-defined colormaps for us . They are all normalized to 255, so they run from 0 to 1. So you need only normalize data, then we can manually select colors from a color map

Parameters:

RGB_color_palette (str) – str value of RGB value

Returns:

rgba, tuple of (R, G, B)

Return type:

tuple

Example:
>>> from watex.utils.plotutils import get_color_palette
>>> get_color_palette (RGB_color_palette ='R128B128')