Skip to content

Commit

Permalink
Hide notebook bookkeeping from doc build
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaskom committed Jun 22, 2018
1 parent 7c7af02 commit 15eec7e
Show file tree
Hide file tree
Showing 8 changed files with 90 additions and 77 deletions.
21 changes: 13 additions & 8 deletions doc/tutorial/aesthetics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,22 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline"
"import numpy as np\n",
"import seaborn as sns\n",
"import matplotlib.pyplot as plt"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": [
"hide"
]
},
"outputs": [],
"source": [
"import numpy as np\n",
"import matplotlib as mpl\n",
"import matplotlib.pyplot as plt\n",
"import seaborn as sns\n",
"%matplotlib inline\n",
"np.random.seed(sum(map(ord, \"aesthetics\")))"
]
},
Expand Down Expand Up @@ -246,10 +249,11 @@
"metadata": {},
"outputs": [],
"source": [
"f = plt.figure()\n",
"with sns.axes_style(\"darkgrid\"):\n",
" plt.subplot(211)\n",
" ax = f.add_subplot(1, 2, 1)\n",
" sinplot()\n",
"plt.subplot(212)\n",
"ax = f.add_subplot(1, 2, 2)\n",
"sinplot(-1)"
]
},
Expand Down Expand Up @@ -383,6 +387,7 @@
}
],
"metadata": {
"celltoolbar": "Tags",
"kernelspec": {
"display_name": "Python 3.6 (seaborn-dev)",
"language": "python",
Expand Down
23 changes: 13 additions & 10 deletions doc/tutorial/axis_grids.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Plotting on data-aware grids"
"# Building multi-plot grids"
]
},
{
Expand All @@ -33,7 +33,8 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline"
"import seaborn as sns\n",
"import matplotlib.pyplot as plt"
]
},
{
Expand All @@ -42,21 +43,21 @@
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import pandas as pd\n",
"import seaborn as sns\n",
"from scipy import stats\n",
"import matplotlib as mpl\n",
"import matplotlib.pyplot as plt"
"sns.set(style=\"ticks\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": [
"hide"
]
},
"outputs": [],
"source": [
"sns.set(style=\"ticks\")\n",
"%matplotlib inline\n",
"import numpy as np\n",
"np.random.seed(sum(map(ord, \"axis_grids\")))"
]
},
Expand Down Expand Up @@ -326,6 +327,7 @@
"metadata": {},
"outputs": [],
"source": [
"from scipy import stats\n",
"def quantile_plot(x, **kwargs):\n",
" qntls, xr = stats.probplot(x, fit=False)\n",
" plt.scatter(xr, qntls, **kwargs)\n",
Expand Down Expand Up @@ -592,6 +594,7 @@
}
],
"metadata": {
"celltoolbar": "Tags",
"kernelspec": {
"display_name": "Python 3.6 (seaborn-dev)",
"language": "python",
Expand Down
27 changes: 19 additions & 8 deletions doc/tutorial/basic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline"
]
"source": []
},
{
"cell_type": "code",
Expand All @@ -40,21 +38,33 @@
"source": [
"import numpy as np\n",
"import pandas as pd\n",
"import matplotlib as mpl\n",
"import matplotlib.pyplot as plt"
"import matplotlib.pyplot as plt\n",
"import seaborn as sns"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": [
"hide"
]
},
"outputs": [],
"source": [
"import seaborn as sns\n",
"sns.set(style=\"darkgrid\", color_codes=True)\n",
"%matplotlib inline\n",
"np.random.seed(sum(map(ord, \"basic\")))"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"sns.set(style=\"darkgrid\", color_codes=True)"
]
},
{
"cell_type": "raw",
"metadata": {},
Expand Down Expand Up @@ -443,6 +453,7 @@
}
],
"metadata": {
"celltoolbar": "Tags",
"kernelspec": {
"display_name": "Python 3.6 (seaborn-dev)",
"language": "python",
Expand Down
25 changes: 10 additions & 15 deletions doc/tutorial/categorical.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,23 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline"
"import seaborn as sns\n",
"import matplotlib.pyplot as plt"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": [
"hide"
]
},
"outputs": [],
"source": [
"%matplotlib inline\n",
"import numpy as np\n",
"import pandas as pd\n",
"import matplotlib as mpl\n",
"import matplotlib.pyplot as plt"
"np.random.seed(sum(map(ord, \"categorical\")))"
]
},
{
Expand All @@ -56,19 +60,9 @@
"metadata": {},
"outputs": [],
"source": [
"import seaborn as sns\n",
"sns.set(style=\"whitegrid\", color_codes=True)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"np.random.seed(sum(map(ord, \"categorical\")))"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -551,6 +545,7 @@
}
],
"metadata": {
"celltoolbar": "Tags",
"kernelspec": {
"display_name": "Python 3.6 (seaborn-dev)",
"language": "python",
Expand Down
19 changes: 12 additions & 7 deletions doc/tutorial/color_palettes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,23 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline"
"import numpy as np\n",
"import seaborn as sns\n",
"import matplotlib.pyplot as plt"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": [
"hide"
]
},
"outputs": [],
"source": [
"import numpy as np\n",
"import seaborn as sns\n",
"import matplotlib.pyplot as plt"
"%matplotlib inline\n",
"np.random.seed(sum(map(ord, \"palettes\")))"
]
},
{
Expand All @@ -55,8 +60,7 @@
"metadata": {},
"outputs": [],
"source": [
"sns.set(rc={\"figure.figsize\": (6, 6)})\n",
"np.random.seed(sum(map(ord, \"palettes\")))"
"sns.set(rc={\"figure.figsize\": (6, 6)})"
]
},
{
Expand Down Expand Up @@ -684,6 +688,7 @@
}
],
"metadata": {
"celltoolbar": "Tags",
"kernelspec": {
"display_name": "Python 3.6 (seaborn-dev)",
"language": "python",
Expand Down
26 changes: 12 additions & 14 deletions doc/tutorial/distributions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,6 @@
"When dealing with a set of data, often the first thing you'll want to do is get a sense for how the variables are distributed. This chapter of the tutorial will give a brief introduction to some of the tools in seaborn for examining univariate and bivariate distributions. You may also want to look at the :ref:`categorical plots <categorical_tutorial>` chapter for examples of functions that make it easy to compare the distribution of a variable across levels of other variables."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -40,8 +31,9 @@
"source": [
"import numpy as np\n",
"import pandas as pd\n",
"from scipy import stats, integrate\n",
"import matplotlib.pyplot as plt"
"import seaborn as sns\n",
"import matplotlib.pyplot as plt\n",
"from scipy import stats"
]
},
{
Expand All @@ -50,16 +42,20 @@
"metadata": {},
"outputs": [],
"source": [
"import seaborn as sns\n",
"sns.set(color_codes=True)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": [
"hide"
]
},
"outputs": [],
"source": [
"%matplotlib inline\n",
"np.random.seed(sum(map(ord, \"distributions\")))"
]
},
Expand Down Expand Up @@ -179,8 +175,9 @@
"metadata": {},
"outputs": [],
"source": [
"from scipy.integrate import trapz\n",
"density = np.sum(kernels, axis=0)\n",
"density /= integrate.trapz(density, support)\n",
"density /= trapz(density, support)\n",
"plt.plot(support, density);"
]
},
Expand Down Expand Up @@ -439,6 +436,7 @@
}
],
"metadata": {
"celltoolbar": "Tags",
"kernelspec": {
"display_name": "Python 3.6 (seaborn-dev)",
"language": "python",
Expand Down

0 comments on commit 15eec7e

Please sign in to comment.