{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "Use this notebook to obtain \"expected\" values for \n", "```\n", "test_geom_imshow_alpha.py\n", "```\n", "test suite." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", " \n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import numpy as np\n", "from lets_plot import *\n", "\n", "LetsPlot.setup_html()\n" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "LetsPlot.set_theme(flavor_solarized_light())" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Greyscale image" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "arr = np.array([\n", " [50, 150, 200],\n", " [200, 100, 50]\n", " ])\n" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Normalization: 0.0002799034118652344\n", "Clipping: 6.794929504394531e-05\n", "image_2d: 0.00014400482177734375\n", "png.Writer: 0.0012731552124023438\n", "base64: 4.887580871582031e-05\n" ] }, { "data": { "text/html": [ "
\n", " " ], "text/plain": [ "