In [1]:
import numpy as np
import pandas as pd

from lets_plot import *
LetsPlot.setup_html()
In [2]:
df = pd.read_csv("https://raw.githubusercontent.com/JetBrains/lets-plot-docs/master/data/mpg.csv")
In [3]:
p_plot = ggplot(df) + geom_point(aes('cty', 'hwy'))
In [4]:
w, h = 400, 300
e_rect = element_rect(color='#9e9eff', fill='#f0f8ff', size=8)

# compare theme parameters: panel_background and panel_border

bunch = GGBunch()
bunch.add_plot(p_plot + ggtitle("panel_background=e_rect") + theme(panel_background=e_rect), 0, 0, w, h)
bunch.add_plot(p_plot + ggtitle("panel_border=e_rect") + theme(panel_border=e_rect), w, 0, w, h)
bunch.show()