{ "cells": [ { "cell_type": "markdown", "id": "50816dd6", "metadata": {}, "source": [ "# `stroke` aesthetic\n", "\n", "Affects the thickness of the point boundaries (in case the given shape has a boundary).\n", "\n", "Available for the following geometries: `geom_point()`, `geom_jitter()`, `geom_qq()`, `geom_qq2()`, `geom_pointrange()`, `geom_dotplot()`, `geom_ydotplot()`." ] }, { "cell_type": "code", "execution_count": 1, "id": "4548aaa5", "metadata": {}, "outputs": [], "source": [ "from lets_plot import *" ] }, { "cell_type": "code", "execution_count": 2, "id": "e5021e9e", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", " \n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "LetsPlot.setup_html()" ] }, { "cell_type": "code", "execution_count": 3, "id": "7ca0b26d", "metadata": {}, "outputs": [], "source": [ "data1 = {\n", " 'x': (list(range(7)) * 4)[:26],\n", " 'y': ([3] * 7 + [2] * 7 + [1] * 7 + [0] * 7)[:26],\n", " 'shape': list(range(26)),\n", "}" ] }, { "cell_type": "code", "execution_count": 4, "id": "1829f639", "metadata": {}, "outputs": [], "source": [ "p1 = ggplot(data1, aes('x', 'y')) + scale_shape_identity() + \\\n", " xlim(-1, 7) + ylim(-1, 4) + \\\n", " theme(legend_position='none')" ] }, { "cell_type": "markdown", "id": "c184ec7a", "metadata": {}, "source": [ "#### 1. Default Stroke" ] }, { "cell_type": "code", "execution_count": 5, "id": "4784b085", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " " ], "text/plain": [ "