lets_plot.labs¶
- lets_plot.labs(**kwargs)¶
Change plot title, plot subtitle, axis labels and legend titles.
- Parameters
- kwargs
Name-value pairs where name should be an aesthetic and value should be a string, e.g. title=’Plot title’ or aesthetic=’Scale label’.
- Returns
- FeatureSpec or FeatureSpecArray
Axis label specification.
Examples
1from lets_plot import * 2LetsPlot.setup_html() 3data = {'x': list(range(10)), 'y': list(range(10))} 4ggplot(data, aes('x', 'y')) + geom_point(aes(size='y')) + \ 5 labs(title='New plot title', subtitle='The plot subtitle', caption='The plot caption', \ 6 x='New x axis label', y='New y axis label', size='New legend title')