{ "cells": [ { "cell_type": "markdown", "id": "d0c2599e", "metadata": {}, "source": [ "# Lets-Plot Themes" ] }, { "cell_type": "code", "execution_count": 1, "id": "076434ca", "metadata": { "execution": { "iopub.execute_input": "2024-03-26T14:37:40.061731Z", "iopub.status.busy": "2024-03-26T14:37:40.061614Z", "iopub.status.idle": "2024-03-26T14:37:40.407097Z", "shell.execute_reply": "2024-03-26T14:37:40.406604Z" } }, "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" ] } ], "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 *" ] }, { "cell_type": "code", "execution_count": 2, "id": "be96474a", "metadata": { "execution": { "iopub.execute_input": "2024-03-26T14:37:40.408542Z", "iopub.status.busy": "2024-03-26T14:37:40.408265Z", "iopub.status.idle": "2024-03-26T14:37:40.410673Z", "shell.execute_reply": "2024-03-26T14:37:40.410412Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "
\n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "LetsPlot.setup_html()" ] }, { "cell_type": "markdown", "id": "ac242d0f", "metadata": {}, "source": [ "### Preparation" ] }, { "cell_type": "code", "execution_count": 3, "id": "94b6d3ad", "metadata": { "execution": { "iopub.execute_input": "2024-03-26T14:37:40.412161Z", "iopub.status.busy": "2024-03-26T14:37:40.411991Z", "iopub.status.idle": "2024-03-26T14:37:40.413327Z", "shell.execute_reply": "2024-03-26T14:37:40.413150Z" } }, "outputs": [], "source": [ "w, h = 400, 300" ] }, { "cell_type": "code", "execution_count": 4, "id": "74457e08", "metadata": { "execution": { "iopub.execute_input": "2024-03-26T14:37:40.414521Z", "iopub.status.busy": "2024-03-26T14:37:40.414386Z", "iopub.status.idle": "2024-03-26T14:37:41.606307Z", "shell.execute_reply": "2024-03-26T14:37:41.605797Z" } }, "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": 5, "id": "fcb086e9", "metadata": { "execution": { "iopub.execute_input": "2024-03-26T14:37:41.607734Z", "iopub.status.busy": "2024-03-26T14:37:41.607654Z", "iopub.status.idle": "2024-03-26T14:37:41.615292Z", "shell.execute_reply": "2024-03-26T14:37:41.615051Z" } }, "outputs": [ { "data": { "text/html": [ " \n", " " ], "text/plain": [ "