{ "cells": [ { "cell_type": "markdown", "id": "b7de4c22-d9d7-426e-9d27-bafa5ba12741", "metadata": {}, "source": [ "# HCL color model.\n", "\n", "Lets-Plot now uses the `HCL` color model instead of `HLV`. This change affects hue scale and gradient scales (both color and greyscale).\n" ] }, { "cell_type": "code", "execution_count": 1, "id": "437cbe49-4f7b-413a-82ed-9c5db230bf24", "metadata": {}, "outputs": [], "source": [ "from lets_plot import *" ] }, { "cell_type": "code", "execution_count": 2, "id": "fd1026f5-35e9-4465-a723-1861118f838e", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", " \n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "LetsPlot.setup_html()" ] }, { "cell_type": "code", "execution_count": 3, "id": "d05a6fe6-b4bb-48f0-aa19-ca222a135a2b", "metadata": {}, "outputs": [], "source": [ "data = { 'x': ['A', 'B', 'C', 'D', 'E', 'F'] }\n", "p = ggplot(data) \\\n", " + geom_boxplot(aes(x='x', fill='x'), stat='identity', lower=25, middle=50, upper=75, ymin=0, ymax=100)" ] }, { "cell_type": "markdown", "id": "cf5b6cc0-76e3-42e6-973a-86cea6e76aa2", "metadata": {}, "source": [ "Palette for discrete data:" ] }, { "cell_type": "code", "execution_count": 4, "id": "da72d537-6d52-4a2c-94a0-0679e3a54b44", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " " ], "text/plain": [ "