In [1]:
%matplotlib inline
from ggplot import *
import pandas as pd

scale_fill_brewer


In [3]:
ggplot(mtcars, aes(x='factor(cyl)', fill='factor(vs)')) + geom_bar() + scale_fill_brewer()


Out[3]:
<ggplot: (285868281)>

In [4]:
ggplot(mtcars, aes(x='factor(cyl)', fill='factor(vs)')) + geom_bar() + scale_fill_brewer(type='div')


Out[4]:
<ggplot: (285636521)>

In [7]:
ggplot(mtcars, aes(x='factor(cyl)', fill='factor(vs)')) + geom_bar() + scale_fill_brewer(type='div', palette=3)


Out[7]:
<ggplot: (292043557)>

In [ ]: