from lets_plot import *
load_lets_plot_js()
p = ggplot() + geom_line(
aes(x='x', y='y', group='g', color='g'),
{
'x': [0, 5, 10, 15, 20, 25],
'y': [0, 5, 10, 15, 20, 25],
'g': ['a', 'a', 'b', 'b', 'c', 'c']
})
p
p + xlim(2, 22)
p + coord_cartesian(xlim=(2, 22))