Commit fad10ff5 authored by Toby Hodges's avatar Toby Hodges

renamed worksheets to reflect merging of worksheets 3 & 5, and changed...

renamed worksheets to reflect merging of worksheets 3 & 5, and changed approach of Bokeh walkthrough.
parent 783ca13b
...@@ -65,22 +65,6 @@ ...@@ -65,22 +65,6 @@
" sites[site][taxonID] = 0\n" " sites[site][taxonID] = 0\n"
] ]
}, },
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"data = {}\n",
"for site in siteNames:\n",
" data[site] = []\n",
" for taxon in taxa:\n",
" data[site].append(sites[site][taxon])\n",
"data['taxa'] = taxa\n"
]
},
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": null,
...@@ -102,6 +86,11 @@ ...@@ -102,6 +86,11 @@
"source": [ "source": [
"plots = []\n", "plots = []\n",
"for site in siteNames:\n", "for site in siteNames:\n",
" data = {}\n",
" data[site] = []\n",
" data['taxa'] = taxa\n",
" for taxon in taxa:\n",
" data[site].append(sites[site][taxon])\n",
" plot = Bar(data, 'taxa', values=site, color='taxa', title=site, xlabel='taxon', ylabel='abundance', tools='')\n", " plot = Bar(data, 'taxa', values=site, color='taxa', title=site, xlabel='taxon', ylabel='abundance', tools='')\n",
" plots.append(plot)" " plots.append(plot)"
] ]
......
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