{ "cells": [ { "cell_type": "markdown", "id": "eec756ff-2fe9-4267-bfd3-829d7d19a6ba", "metadata": {}, "source": [ "# `ggtb()`: `size_zoomin` and `size_basis` Parameters for Geometry Scaling\n", "\n", "## `size_zoomin` parameter\n", "\n", "The `size_zoomin` parameter accepts an integer value:\n", "\n", "* `0` — zoom in disabled (default)\n", "* `-1` — unlimited zoom in\n", "* Any other positive number — maximum zoom-in limit. For example, `2` means the geometry can be scaled up to **2×**.\n", "\n", "## `size_basis` parameter\n", "\n", "The `size_basis` parameter accepts a string value: `x`, `y`, `min`, or `max` (default: `max`).\n", "It defines which axis is used to calculate the scaling factor.\n", "\n", "* `x` and `y` specify the corresponding axis.\n", "* `min` uses the smaller scaling factor.\n", "* `max` uses the larger scaling factor." ] }, { "cell_type": "code", "execution_count": 1, "id": "1c382fab-6e5b-4fdf-b185-c36c386aee18", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "
\n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "from lets_plot import *\n", "import pandas as pd\n", "LetsPlot.setup_html()" ] }, { "cell_type": "markdown", "id": "6c0c8116-990c-403c-bf49-696247f642a3", "metadata": {}, "source": [ "#### Enable 'Unlimited' Zoom\n" ] }, { "cell_type": "code", "execution_count": 2, "id": "c287276a-2732-4bbd-b07d-33f32737a5f9", "metadata": {}, "outputs": [ { "data": { "text/html": [ " \n", " " ], "text/plain": [ "