{ "cells": [ { "cell_type": "markdown", "id": "3dc9150a", "metadata": {}, "source": [ "# Joint plot" ] }, { "cell_type": "markdown", "id": "9e289998", "metadata": {}, "source": [ "## Table of Contents\n", "\n", "1. [Default Presentation of Joint Plot](#default)\n", "\n", "2. [Change Geom Types](#change-geom)\n", "\n", "3. [Geometries Customization](#geom-customization)\n", "\n", "4. [Marginal Layers Customization](#marginal-customization)\n", "\n", "5. [Grouping](#grouping)\n", "\n", "6. [Additional Layer](#additional_layer)" ] }, { "cell_type": "code", "execution_count": 1, "id": "2cb4b712", "metadata": { "execution": { "iopub.execute_input": "2024-08-23T10:36:31.759461Z", "iopub.status.busy": "2024-08-23T10:36:31.759366Z", "iopub.status.idle": "2024-08-23T10:36:32.087623Z", "shell.execute_reply": "2024-08-23T10:36:32.087202Z" } }, "outputs": [], "source": [ "import pandas as pd\n", "\n", "from lets_plot.bistro import *\n", "from lets_plot import *" ] }, { "cell_type": "code", "execution_count": 2, "id": "411b248e", "metadata": { "execution": { "iopub.execute_input": "2024-08-23T10:36:32.089170Z", "iopub.status.busy": "2024-08-23T10:36:32.089055Z", "iopub.status.idle": "2024-08-23T10:36:32.091605Z", "shell.execute_reply": "2024-08-23T10:36:32.091403Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "
\n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "LetsPlot.setup_html()" ] }, { "cell_type": "code", "execution_count": 3, "id": "df4a9ae6", "metadata": { "execution": { "iopub.execute_input": "2024-08-23T10:36:32.092683Z", "iopub.status.busy": "2024-08-23T10:36:32.092608Z", "iopub.status.idle": "2024-08-23T10:36:32.229253Z", "shell.execute_reply": "2024-08-23T10:36:32.228971Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "(150, 5)\n" ] }, { "data": { "text/html": [ "\n", " | sepal_length | \n", "sepal_width | \n", "petal_length | \n", "petal_width | \n", "species | \n", "
---|---|---|---|---|---|
0 | \n", "5.1 | \n", "3.5 | \n", "1.4 | \n", "0.2 | \n", "setosa | \n", "
1 | \n", "4.9 | \n", "3.0 | \n", "1.4 | \n", "0.2 | \n", "setosa | \n", "
2 | \n", "4.7 | \n", "3.2 | \n", "1.3 | \n", "0.2 | \n", "setosa | \n", "
3 | \n", "4.6 | \n", "3.1 | \n", "1.5 | \n", "0.2 | \n", "setosa | \n", "
4 | \n", "5.0 | \n", "3.6 | \n", "1.4 | \n", "0.2 | \n", "setosa | \n", "