{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "fzlOCgGQRw3o"
},
"source": [
"# matplotlib 入門 (12) nitta@tsuda.ac.jp\n",
"\n",
"# Chapter 12: Bar Graph (2)"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "jsspHSOdR6wO"
},
"source": [
"## 12-1: Generate a normal distribution histogram and draw the lines of probability density his
\n",
"
\n", " Axes.hist(x,\n", " bins=None, # number of bin(class)\n", " range=None, # lower and upper limits of class\n", " density=None, # frequency if False, probability otherwise. \n", " #The return value is F (list of values, list of lower bounds, patch object)\n", " histtype='bar', # type of bar (bar/barstacked/step/stepfilled)\n", " align='mid', # position of bar (left/mid/right)\n", " orientation='vertical', # bar orientation (horizontal/vertical)\n", " color=None,\n", " **kwargs # specify the properties of Patch class\n", " )\n", "\n", "\n", "Normal distribution probability density function\n", "\n", "$\\displaystyle\n", "f(x) = \\frac{1}{\\sqrt{2\\pi \\rho}}\n", "e^{\\frac{(x - \\mu)^2}{2 \\sigma^2}}\n", "$