In [1]:
%matplotlib inline
from ggplot import *
import pandas as pd
In [3]:
ggplot(mtcars, aes(x='factor(cyl)', fill='factor(vs)')) + geom_bar() + scale_fill_brewer()
Out[3]:
In [4]:
ggplot(mtcars, aes(x='factor(cyl)', fill='factor(vs)')) + geom_bar() + scale_fill_brewer(type='div')
Out[4]:
In [7]:
ggplot(mtcars, aes(x='factor(cyl)', fill='factor(vs)')) + geom_bar() + scale_fill_brewer(type='div', palette=3)
Out[7]:
In [ ]: