lets_plot.labs

lets_plot.labs(**kwargs)

Change plot title, axis labels and legend titles.

Parameters
kwargsdict

A list of new name-value pairs where name should be an aesthetic, 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', x='New x axis label', \
6         y='New y axis label', size='New legend title')