In [1]:
import numpy as np
from lets_plot import *
LetsPlot.setup_html()
In [2]:
n = 100
np.random.seed(42)
x = np.random.normal(size=n)
group = np.random.choice(['a', 'b'], size=n)
p = ggplot({'x': x, 'group': group}, aes(x='x')) + geom_histogram() 
p
Out[2]:
In [3]:
p + theme_bw() + ggtitle("theme_bw()")
Out[3]:
In [4]:
p + facet_wrap(facets='group', ncol=2)+ theme_bw()
Out[4]: