{ "cells": [ { "cell_type": "markdown", "id": "4d37b3c0", "metadata": {}, "source": [ "# Axis Position\n", "\n", "The `position` parameter in `scaleX*(), scaleY*()` functions controls position of the axis:\n", "\n", "- \"left\", \"right\" or \"both\" for y-axis;\n", "- \"top\", \"bottom\" or \"both\" for x-axis.\n" ] }, { "cell_type": "code", "execution_count": 1, "id": "e235af3f", "metadata": { "execution": { "iopub.execute_input": "2025-12-03T15:58:56.719076Z", "iopub.status.busy": "2025-12-03T15:58:56.717647Z", "iopub.status.idle": "2025-12-03T15:58:59.214831Z", "shell.execute_reply": "2025-12-03T15:58:59.214276Z" } }, "outputs": [ { "data": { "text/html": [ "
\n", " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ " \n", " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "%useLatestDescriptors\n", "%use dataframe\n", "%use lets-plot" ] }, { "cell_type": "code", "execution_count": 2, "id": "2a5f04f2", "metadata": { "execution": { "iopub.execute_input": "2025-12-03T15:58:59.217210Z", "iopub.status.busy": "2025-12-03T15:58:59.216651Z", "iopub.status.idle": "2025-12-03T15:58:59.243973Z", "shell.execute_reply": "2025-12-03T15:58:59.244100Z" } }, "outputs": [ { "data": { "text/plain": [ "Lets-Plot Kotlin API v.4.12.0. Frontend: Notebook with dynamically loaded JS. Lets-Plot JS v.4.8.1.\n", "Outputs: Web (HTML+JS), Kotlin Notebook (Swing), Static SVG (hidden)" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "LetsPlot.getInfo()" ] }, { "cell_type": "code", "execution_count": 3, "id": "d0ad53fd", "metadata": { "execution": { "iopub.execute_input": "2025-12-03T15:58:59.245444Z", "iopub.status.busy": "2025-12-03T15:58:59.245227Z", "iopub.status.idle": "2025-12-03T15:58:59.665459Z", "shell.execute_reply": "2025-12-03T15:58:59.665256Z" } }, "outputs": [ { "data": { "application/kotlindataframe+json": "{\"nrow\":3,\"ncol\":5,\"columns\":[\"sepal_length\",\"sepal_width\",\"petal_length\",\"petal_width\",\"species\"],\"is_formatted\":false,\"kotlin_dataframe\":[{\"sepal_length\":5.1,\"sepal_width\":3.5,\"petal_length\":1.4,\"petal_width\":0.2,\"species\":\"setosa\"},{\"sepal_length\":4.9,\"sepal_width\":3.0,\"petal_length\":1.4,\"petal_width\":0.2,\"species\":\"setosa\"},{\"sepal_length\":4.7,\"sepal_width\":3.2,\"petal_length\":1.3,\"petal_width\":0.2,\"species\":\"setosa\"}]}", "text/html": [ " \n", " \n", " \n", " \n", " \n", "DataFrame: rowsCount = 3, columnsCount = 5
\n", "| sepal_length | sepal_width | petal_length | petal_width | species |
|---|---|---|---|---|
| 5.100000 | 3.500000 | 1.400000 | 0.200000 | setosa |
| 4.900000 | 3.000000 | 1.400000 | 0.200000 | setosa |
| 4.700000 | 3.200000 | 1.300000 | 0.200000 | setosa |