Commit c30c48c2 authored by Toby Hodges's avatar Toby Hodges

some formatting changes to make the notebooks more handout-friendly.

parent 3c1f3533
......@@ -46,7 +46,9 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"width": 50
},
"source": [
"![An example of the IPython-Qtshell window](images/IPythonQtShell.png)"
]
......@@ -1278,6 +1280,7 @@
}
],
"metadata": {
"celltoolbar": "Edit Metadata",
"kernelspec": {
"display_name": "Python 3",
"language": "python",
......
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"% matplotlib inline"
]
},
{
"cell_type": "markdown",
"metadata": {},
......@@ -25,6 +14,17 @@
"## 4. Plotting Data with Matplotlib and Bokeh"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"% matplotlib inline"
]
},
{
"cell_type": "markdown",
"metadata": {},
......@@ -966,6 +966,7 @@
"metadata": {},
"source": [
"Plot all of the data that you read from the file earlier into a single figure of bar plots for each site. This is challenging, but take it bit by bit and you should be able to do it. \n",
"\n",
"* You will need to start by calling `plt.figure(1)`, then start a loop over the sites. \n",
"* In that loop, you need to \n",
" * gather the data for the bar heights (the counts),\n",
......@@ -980,7 +981,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"![Example output from Exercise 4.6](images/exercise5_6example.png)"
"![Example output from Exercise 4.6](images/exercise4_6example.png)"
]
},
{
......@@ -1192,6 +1193,7 @@
"metadata": {},
"source": [
"Similarly to what you did before with `matplotlib`, plot all of the data that you read from the file earlier into a single file of bar plots, one for each site. This is challenging, but take it bit by bit and you should be able to do it. \n",
"\n",
"* You will need to start by declaring the name of the output HTML file.\n",
"* Next, start a loop over the sites. \n",
"* In that loop, you need to \n",
......@@ -1202,7 +1204,7 @@
"* Once you have it working like that, try changing the program so that the sites and taxon IDs are in alphabetical order. \n",
"* Then try changing the color of the bars, so that each taxon is represented in a different color. Make sure that this coloring is consistent across your plots. \n",
"\n",
"You might need to refer to the `help()` documentation and the online user guide linked above for the plotting functions to achieve everything listed above, but with a little time and effort, you should be able to get your plots to look as below."
"You might need to refer to the `help()` documentation and the online user guide linked above for the plotting functions to achieve everything listed above."
]
},
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment