{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Bars plots\n", "\n", "Now that we have an understanding of the core components of plots and some basic plot types, let's dive more deeply into bar plots and the ways we can customize them, in particular, how we can make stacked and grouped bar plots. To begin with, let's create some data that we'll plot for this exercise that shows the output of grain, wheat and barley in tons, for three different farms." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | Grain | \n", "Wheat | \n", "Barley | \n", "
---|---|---|---|
Farm A | \n", "50 | \n", "75 | \n", "36 | \n", "
Farm B | \n", "15 | \n", "98 | \n", "33 | \n", "
Farm C | \n", "0 | \n", "20 | \n", "77 | \n", "