{ "cells": [ { "cell_type": "markdown", "id": "0be28d50-288c-482c-b96f-ea37cd96b4d0", "metadata": {}, "source": [ "# Axis Minor Ticks\n", "\n", "The `axis_minor_ticks` and `axis_minor_ticks_length` parameters in `theme()` control\n", "the appearance of axis minor ticks, i.e., the tick marks drawn between major ticks.\n", "\n", "* `axis_minor_ticks` - tick line attributes set via `element_line()`\n", "* `axis_minor_ticks_length` - tick length in pixels\n", "* `axis_minor_ticks_x` / `axis_minor_ticks_y`, `axis_minor_ticks_length_x` / `axis_minor_ticks_length_y` -\n", "directional overrides allow controlling only horizontal or vertical axes.\n", "\n", "Minor ticks are placed at positions computed by the scale (e.g., midpoints between major breaks\n", "for continuous scales). They do not carry labels as for now." ] }, { "cell_type": "code", "execution_count": 1, "id": "08f8fca6-56e4-4212-8d02-c0f3ba2b34df", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "
\n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "from lets_plot import *\n", "import numpy as np\n", "import pandas as pd\n", "\n", "LetsPlot.setup_html()" ] }, { "cell_type": "markdown", "id": "b0cfb1bf-9865-4e60-9fc9-3284be33ca16", "metadata": {}, "source": [ "## General Usage\n", "Minor ticks can improve readability of continuous axes, especially when major breaks are sparse." ] }, { "cell_type": "code", "execution_count": 2, "id": "6a1c07f6-58fb-4079-80e9-37b02ed62651", "metadata": {}, "outputs": [ { "data": { "text/html": [ " \n", " " ], "text/plain": [ "