import pandas as pd
from lets_plot import *
load_lets_plot_js()
--------------------------------------------------------------------------- NameError Traceback (most recent call last) C:\Temp/ipykernel_11496/1528045104.py in <module> 1 import pandas as pd 2 from lets_plot import * ----> 3 load_lets_plot_js() NameError: name 'load_lets_plot_js' is not defined
p1 = ggplot() + geom_point(
aes(x='x', y='y', color='g'),
{
'x': [1, 2, 3],
'y': [1, 1, 1],
'g': ['a', 'b', 'c']
})
p1
# Hide tooltips for the Y axis
p1 + theme(axis_tooltip_y='blank')
# 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
# Hide tooltips for the X axis
p + theme(axis_tooltip_x='blank')
# Hide tooltips for both axes
p + theme(axis_tooltip='blank')