{ "cells": [ { "cell_type": "markdown", "id": "2ac0e74d", "metadata": {}, "source": [ "# Axis Position\n", "\n", "The `position` parameter in `scale_x_(), scale_y_()` 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": "8ab5b1ed", "metadata": { "execution": { "iopub.execute_input": "2024-04-17T07:29:21.405793Z", "iopub.status.busy": "2024-04-17T07:29:21.405455Z", "iopub.status.idle": "2024-04-17T07:29:21.729478Z", "shell.execute_reply": "2024-04-17T07:29:21.729154Z" } }, "outputs": [], "source": [ "import pandas as pd\n", "\n", "from lets_plot import *" ] }, { "cell_type": "code", "execution_count": 2, "id": "b0b9825c", "metadata": { "execution": { "iopub.execute_input": "2024-04-17T07:29:21.730914Z", "iopub.status.busy": "2024-04-17T07:29:21.730798Z", "iopub.status.idle": "2024-04-17T07:29:21.733163Z", "shell.execute_reply": "2024-04-17T07:29:21.732824Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "
\n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "LetsPlot.setup_html()\n", "LetsPlot.set_theme(theme_grey())" ] }, { "cell_type": "code", "execution_count": 3, "id": "5e6d519e", "metadata": { "execution": { "iopub.execute_input": "2024-04-17T07:29:21.734268Z", "iopub.status.busy": "2024-04-17T07:29:21.734111Z", "iopub.status.idle": "2024-04-17T07:29:21.875675Z", "shell.execute_reply": "2024-04-17T07:29:21.875229Z" } }, "outputs": [ { "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", "