{ "cells": [ { "cell_type": "markdown", "id": "fc72e37e-e3a2-4e75-ad5d-336d24f6a33c", "metadata": {}, "source": [ "# Venn Diagram" ] }, { "cell_type": "code", "execution_count": 1, "id": "5ad691ef-aacf-42ba-8348-635584136c0d", "metadata": { "execution": { "iopub.execute_input": "2026-01-27T17:13:28.554603Z", "iopub.status.busy": "2026-01-27T17:13:28.554525Z", "iopub.status.idle": "2026-01-27T17:13:28.557331Z", "shell.execute_reply": "2026-01-27T17:13:28.557060Z" } }, "outputs": [], "source": [ "from math import sqrt\n", "\n", "from lets_plot import *" ] }, { "cell_type": "code", "execution_count": 2, "id": "6a0e740c-8b41-432c-9577-3d99b2a67583", "metadata": { "execution": { "iopub.execute_input": "2026-01-27T17:13:28.558384Z", "iopub.status.busy": "2026-01-27T17:13:28.558306Z", "iopub.status.idle": "2026-01-27T17:13:28.559956Z", "shell.execute_reply": "2026-01-27T17:13:28.559727Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "
\n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "LetsPlot.setup_html()" ] }, { "cell_type": "code", "execution_count": 3, "id": "dc317cd6-6edf-4c59-9133-3ab25ab3a079", "metadata": { "execution": { "iopub.execute_input": "2026-01-27T17:13:28.561100Z", "iopub.status.busy": "2026-01-27T17:13:28.561016Z", "iopub.status.idle": "2026-01-27T17:13:28.563010Z", "shell.execute_reply": "2026-01-27T17:13:28.562800Z" } }, "outputs": [], "source": [ "r = .5\n", "h = r * sqrt(3)/2\n", "sets_data = {\n", " 'x': [0, r, r/2],\n", " 'y': [0, 0, h],\n", " 'size': [2*r, 2*r, 2*r],\n", " 'color': ['#e24462', '#306998', '#ffe873'],\n", "}\n", "texts_data = {\n", " 'x': [-r/2, r + r/2, r/2, r/2, -r/8, r + r/8, r/2],\n", " 'y': [-r/4, -r/4, h + r/2, -3*r/8, 5*r/8, 5*r/8, 5*r/16],\n", " 'text': [\"Kotlin\", \"Geospatial\\nVisualization\", \"Grammar\\nof\\nGraphics\", \"ArcGIS\", \"Kandy\", \"ggmap\", \"Lets-Plot\"],\n", " 'size': [.4*r]*7,\n", "}" ] }, { "cell_type": "code", "execution_count": 4, "id": "6613d60d-0c7b-47b1-a4e4-5e4710642ae7", "metadata": { "execution": { "iopub.execute_input": "2026-01-27T17:13:28.564175Z", "iopub.status.busy": "2026-01-27T17:13:28.564093Z", "iopub.status.idle": "2026-01-27T17:13:28.617100Z", "shell.execute_reply": "2026-01-27T17:13:28.616780Z" } }, "outputs": [ { "data": { "text/html": [ " \n", " " ], "text/plain": [ "