{ "cells": [ { "cell_type": "markdown", "id": "d0c2599e", "metadata": {}, "source": [ "# Lets-Plot Themes" ] }, { "cell_type": "code", "execution_count": 1, "id": "076434ca", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "The geodata is provided by © OpenStreetMap contributors and is made available here under the Open Database License (ODbL).\n" ] }, { "data": { "text/html": [ "\n", "
\n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import numpy as np\n", "import pandas as pd\n", "from PIL import Image\n", "\n", "from lets_plot import *\n", "from lets_plot.geo_data import *\n", "from lets_plot.bistro.corr import *\n", "LetsPlot.setup_html()" ] }, { "cell_type": "markdown", "id": "ac242d0f", "metadata": {}, "source": [ "### Preparation" ] }, { "cell_type": "code", "execution_count": 2, "id": "94b6d3ad", "metadata": {}, "outputs": [], "source": [ "w, h = 400, 300" ] }, { "cell_type": "code", "execution_count": 3, "id": "74457e08", "metadata": {}, "outputs": [], "source": [ "df = pd.read_csv(\"https://raw.githubusercontent.com/JetBrains/lets-plot-docs/master/data/mpg.csv\")\n", "gdf = geocode_countries().get_boundaries(3)\n", "img = Image.open(\"images/fisher_boat.png\")" ] }, { "cell_type": "code", "execution_count": 4, "id": "fcb086e9", "metadata": {}, "outputs": [ { "data": { "text/html": [ " \n", " " ], "text/plain": [ "