{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "historic-minority", "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": "code", "execution_count": 2, "id": "specialized-peoples", "metadata": {}, "outputs": [], "source": [ "df = {\n", " 'x' : [1, 1, 2, 2, 1.5],\n", " 'y' : [1, 2, 1, 2, 1.5],\n", " 'text': [\"bottom-left\", \"top-left\", \"bottom-right\", \"top-right\", \"center\"]\n", "}\n", "\n", "w, h = 400, 250\n", "\n", "p = ggplot(df, aes('x', 'y')) + geom_point(size=3) + ggsize(w,h) + theme_classic() \n" ] }, { "cell_type": "code", "execution_count": 3, "id": "worth-eagle", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " " ], "text/plain": [ "