{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# hist" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This section describes various options available for histogram plots in **fivecentplots**" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "See the full API https://endangeredoxen.github.io/fivecentplots/0.6.0/api/hist.html#hist" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Setup" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Import packages:" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import fivecentplots as fcp\n", "import pandas as pd\n", "import numpy as np\n", "from pathlib import Path\n", "import matplotlib.pylab as plt\n", "import imageio.v3 as imageio" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Read some fake data to generate plots:" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | Batch | \n", "Sample | \n", "Region | \n", "Value | \n", "ID | \n", "
---|---|---|---|---|---|
0 | \n", "101 | \n", "1 | \n", "Alpha123 | \n", "3.5 | \n", "ID701223A | \n", "
1 | \n", "101 | \n", "1 | \n", "Alpha123 | \n", "0.0 | \n", "ID7700-1222B | \n", "
2 | \n", "101 | \n", "1 | \n", "Alpha123 | \n", "3.3 | \n", "ID701223A | \n", "
3 | \n", "101 | \n", "1 | \n", "Alpha123 | \n", "3.2 | \n", "ID7700-1222B | \n", "
4 | \n", "101 | \n", "1 | \n", "Alpha123 | \n", "4.0 | \n", "ID701223A | \n", "