{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from lets_plot import *" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "LetsPlot.setup_html()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "lat = [48.979166, 48.936053, 29.875645, 35.309947,42.309]\n", "lng = [-104.032789, -123.242456, -102.492420, -80.237456,-80.237]\n", "values = [700, 800, 1500, 200, 500]\n", "data = dict(y=lat, x=lng)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "ggplot(data) \\\n", " + geom_livemap(zoom=4) \\\n", " + geom_polygon(aes(x='x', y='y'), fill='yellow', alpha=0.4, color='green', size = 3)" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.10" } }, "nbformat": 4, "nbformat_minor": 1 }