from math import sqrt
import numpy as np
import pandas as pd
from lets_plot import *
LetsPlot.setup_html()
lon_min, lon_max = -106.65, -93.51
lat_min, lat_max = 0.0, 80.0
num_points = 1000
data = {
'lon': np.random.uniform(lon_min, lon_max, num_points),
'lat': np.random.uniform(lat_min, lat_max, num_points),
}
df = pd.DataFrame(data)
df
ggplot(df, aes('lon', 'lat')) + geom_livemap() + geom_hex(binwidth=[2, 2])
ggplot(df, aes('lon', 'lat')) + geom_livemap(projection = 'conic') + geom_hex(binwidth=[2, 2])
#dump_plot(_)