def get_colormap_tableu20(color=None):
    """
Get the Tableau20 colormap.

Parameters
----------
Optinal arguments
color : int
    returns #color from the Tableau20 colormap

Returns
----------
color : rgb tuple
    if color != None, then this color is returned
color : list of rgb tuples
    if color == None, then a list of rgb tuples is returned
    """
    tableau20 = [(31, 119, 180), (14, 199, 232), (255, 127, 14), (255, 187,
        120), (44, 160, 44), (152, 223, 138), (214, 39, 40), (255, 152, 150
        ), (148, 103, 189), (197, 176, 213), (140, 86, 75), (196, 156, 148),
        (227, 119, 194), (247, 182, 210), (127, 127, 127), (199, 199, 199),
        (188, 189, 34), (219, 219, 141), (23, 190, 207), (158, 218, 229)]
    for i in range(len(tableau20)):
        r, g, b = tableau20[i]
        tableau20[i] = r / 255.0, g / 255.0, b / 255.0
    if color is None:
        return tableau20
    else:
        color = color % len(tableau20)
        return tableau20[color]
