In [1]:
import numpy as np
import pandas as pd

from lets_plot import *
LetsPlot.setup_html()
In [2]:
df = pd.read_csv("https://raw.githubusercontent.com/JetBrains/lets-plot-docs/master/data/mpg.csv")
In [3]:
p = (
    ggplot(df, aes('cty', 'hwy', color='drv')) + 
    geom_point(tooltips=layer_tooltips()
                           .title('@manufacturer @model')    
                           .line('@|@class')
                           .line('@|@year')) + 
    labs(
        title='The plot title',
        subtitle='The plot subtitle',
        caption='The plot caption',
        color='Drive type'
    )
)    
p
Out[3]:
In [4]:
p + theme(
      title = element_text(size=18),
      plot_title = element_text(face='bold'),
      plot_caption = element_text(size=12, face='italic'),
      axis_text = element_text(size=14, face='italic'),
      tooltip_text = element_text(size=15)
    )
Out[4]:
In [5]:
# family
p + theme(
      text = element_text(family='Times New Roman', size=15)
    )
Out[5]: