@classmethod
def list(cls, sublist='all'):
    """
        Returns a list of the color hex codes for use in Matplotlib
        or other tools which want a set of colors to choose from

        :param: str sublist: (default='all') options 'colors'/'core'/'neutral'/'all'

        :returns: a list of color hex codes
        :rtype: list

        """
    if sublist is not None:
        if sublist not in ['core', 'neutral', 'colors', 'all']:
            raise Exception(
                'List type can only be "core", "neutral", "colors", or "all"')
    list_ = []
    for color in getattr(cls, sublist):
        list_.append(getattr(cls, color))
    return list_
