{ "cells": [ { "cell_type": "markdown", "id": "4c1e11e9-bbb3-4497-8af3-2e0d9029f57e", "metadata": {}, "source": [ "# Physical Metrics Parameters for `ggsave()`\n", "\n", "Parameters `dpi`, `w`, `h` and `unit` can be used to configure export to a raster image with required physical metrics. Aspect ratio must be maintained manually between `ggsize()` and `ggsave()`. Please note that using these parameters will disable the `scale` parameter." ] }, { "cell_type": "code", "execution_count": 1, "id": "3e938c92-387d-4923-ae0e-d1f540e556aa", "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "\n", "from lets_plot import *" ] }, { "cell_type": "code", "execution_count": 2, "id": "6346de4f-b253-48ba-a999-cdc2795e0a3b", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "
\n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "LetsPlot.setup_html()" ] }, { "cell_type": "code", "execution_count": 3, "id": "eec0a05f-8b50-41de-99ef-97c8a4df86a7", "metadata": {}, "outputs": [ { "data": { "text/html": [ " \n", " " ], "text/plain": [ "