

def colors(self, brew=None, range_=None):
    "Convenience method for adding color brewer scales to charts with a\n        color scale, such as stacked or grouped bars.\n\n        See the colors here: http://colorbrewer2.org/\n\n        Or here: http://bl.ocks.org/mbostock/5577023\n\n        This assumes that a 'color' scale exists on your chart.\n\n        Parameters\n        ----------\n        brew: string, default None\n            Color brewer scheme (BuGn, YlOrRd, etc)\n        range: list, default None\n            List of colors. Ex: ['#ac4142', '#d28445', '#f4bf75']\n        "
    if brew:
        self.scales['color'].range = brews[brew]
    elif range_:
        self.scales['color'].range = range_
    return self

dataset/ETHPy150Open wrobstory/vincent/vincent/visualization.py Visualization.colors/original