lets_plot.ggtitle#

lets_plot.ggtitle(label, subtitle=None)#

Add title to the plot.

Parameters:
labelstr

The text for the plot title.

subtitlestr

The text for the plot subtitle.

Returns:
FeatureSpec

Plot title specification.

Notes

Split a long title/subtitle into two lines or more using \n as a text separator.

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    ggtitle('New Plot Title')