src/pys5p/tol_colors.py
def tol_cmap(colormap=None, lut=None):
    """
    Continuous and discrete color sets for ordered data.

    Return a matplotlib colormap.
    Parameter lut is ignored for all colormaps except 'rainbow_discrete'.
    """
    obj = TOLcmaps()
    if colormap is None:
        return obj.namelist
    if colormap not in obj.namelist:
        colormap = 'rainbow_PuRd'
        print('*** Warning: requested colormap not defined,',
              f'known colormaps are {obj.namelist}.',
              f'Using {colormap}.')
    return obj.get(colormap, lut)

    Continuous and discrete color sets for ordered data.

    Return a matplotlib colormap.
    Parameter lut is ignored for all colormaps except 'rainbow_discrete'.
    
Continuous and discrete color sets for ordered data.
Return a matplotlib colormap.
Parameter lut is ignored for all colormaps except 'rainbow_discrete'.
Continuous and discrete color sets for ordered data . Return a matplotlib colormap . Parameter lut is ignored for all colormaps except ' rainbow_discrete ' .
def tol_cmap(colormap=None, lut=None):
    obj = TOLcmaps()
    if colormap is None:
        return obj.namelist
    if colormap not in obj.namelist:
        colormap = 'rainbow_PuRd'
        print('*** Warning: requested colormap not defined,',
              f'known colormaps are {obj.namelist}.',
              f'Using {colormap}.')
    return obj.get(colormap, lut)
def tol_cmap ( colormap = None , lut = None ) : obj = TOLcmaps ( ) if colormap is None : return obj . namelist if colormap not in obj . namelist : colormap = 'rainbow_PuRd' print ( '*** Warning: requested colormap not defined,' , f'known colormaps are {obj.namelist}.' , f'Using {colormap}.' ) return obj . get ( colormap , lut )
Continuous and discrete color sets for ordered data.
Continuous and discrete color sets for ordered data .
"""
    Continuous and discrete color sets for ordered data.

    Return a matplotlib colormap.
    Parameter lut is ignored for all colormaps except 'rainbow_discrete'.
    """
colormap
lut