lets_plot.labs¶
- lets_plot.labs(title=None, subtitle=None, caption=None, **labels)¶
Change plot title and axis label.
- Parameters
- titlestr
The text for the plot title.
- subtitlestr
The text for the plot subtitle.
- captionstr
The text for the plot caption.
- labels
Name-value pairs where name should be an aesthetic and value should be a string, e.g. color=”New Color label”.
- Returns
- FeatureSpec or FeatureSpecArray
Labels 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')