#!/usr/bin/env python # coding: utf-8 # In[1]: import pandas as pd from lets_plot import * load_lets_plot_js() # In[ ]: p1 = ggplot() + geom_point( aes(x='x', y='y', color='g'), { 'x': [1, 2, 3], 'y': [1, 1, 1], 'g': ['a', 'b', 'c'] }) p1 # In[ ]: # Hide tooltips for the Y axis p1 + theme(axis_tooltip_y='blank') # In[ ]: # Load MPG dataset mpg = pd.read_csv ("https://raw.githubusercontent.com/JetBrains/lets-plot-docs/master/data/mpg.csv") mpg.head () # Default legend p = ggplot(mpg, aes('displ', 'hwy', color='manufacturer')) + geom_point(size=5) + ggsize(500,250) p # In[ ]: # Hide tooltips for the X axis p + theme(axis_tooltip_x='blank') # In[ ]: # Hide tooltips for both axes p + theme(axis_tooltip='blank')