{ "cells": [ { "cell_type": "markdown", "id": "e3d02a8a-ca67-408f-9fed-fb626895939b", "metadata": {}, "source": [ "# Zooming" ] }, { "cell_type": "code", "execution_count": 1, "id": "6c074779-802c-4e1a-9afe-be1be62f1a64", "metadata": { "execution": { "iopub.execute_input": "2025-11-05T13:39:33.659827Z", "iopub.status.busy": "2025-11-05T13:39:33.659744Z", "iopub.status.idle": "2025-11-05T13:39:33.687525Z", "shell.execute_reply": "2025-11-05T13:39:33.687171Z" } }, "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 pandas as pd\n", "\n", "from lets_plot import *\n", "from lets_plot.geo_data import *" ] }, { "cell_type": "code", "execution_count": 2, "id": "f56358c4-c485-4929-9c35-3410211d3269", "metadata": { "execution": { "iopub.execute_input": "2025-11-05T13:39:33.688329Z", "iopub.status.busy": "2025-11-05T13:39:33.688253Z", "iopub.status.idle": "2025-11-05T13:39:33.690262Z", "shell.execute_reply": "2025-11-05T13:39:33.690024Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "
\n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "LetsPlot.setup_html()" ] }, { "cell_type": "code", "execution_count": 3, "id": "85c71bba-c190-4666-be10-53700a376bed", "metadata": { "execution": { "iopub.execute_input": "2025-11-05T13:39:33.690931Z", "iopub.status.busy": "2025-11-05T13:39:33.690862Z", "iopub.status.idle": "2025-11-05T13:39:34.632301Z", "shell.execute_reply": "2025-11-05T13:39:34.631941Z" } }, "outputs": [ { "data": { "text/html": [ "| \n", " | state | \n", "found name | \n", "geometry | \n", "
|---|---|---|---|
| 0 | \n", "IL | \n", "Illinois | \n", "MULTIPOLYGON (((-89.13301 36.98200, -89.16777 ... | \n", "
| 1 | \n", "IN | \n", "Indiana | \n", "MULTIPOLYGON (((-84.81993 39.10544, -84.83405 ... | \n", "
| 2 | \n", "MI | \n", "Michigan | \n", "MULTIPOLYGON (((-90.41862 46.56636, -90.00014 ... | \n", "
| 3 | \n", "OH | \n", "Ohio | \n", "MULTIPOLYGON (((-82.59342 38.42186, -82.60076 ... | \n", "
| 4 | \n", "WI | \n", "Wisconsin | \n", "MULTIPOLYGON (((-91.21771 43.50055, -91.21829 ... | \n", "