Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
64e1cc0
Project Proposal
Mar 5, 2018
cc0c953
Obtained hurricane data from NOAA but the file was too large to the c…
Mar 8, 2018
be19bb2
Worked on the Hurricane and Model classes. Was able to find a way
Mar 9, 2018
510b3a0
Changed Hurricane.nature to a list of natures
Mar 9, 2018
da3bbbe
Walkthrough Bokeh tutorials and Makes File with Pertanant Information
elizabethtawes Mar 9, 2018
7b6e80f
Merge pull request #1 from coverney/Cassandra
Mar 9, 2018
cbb2228
Merge pull request #2 from coverney/Libby
Mar 9, 2018
7a31253
Generate x and y locations in Hurricane and call them in Model
elizabethtawes Mar 9, 2018
2d179a2
figure out hover
elizabethtawes Mar 9, 2018
797fa4e
Fixed the hover tool to show name and season of hurricanes and create…
Mar 10, 2018
905984b
Added in the time scale feature and made on source frame for all the …
Mar 11, 2018
9dc368e
added the pickle file for hurrican objects
Mar 13, 2018
f78f892
Make Hurricanes Transparent if not on slider year
elizabethtawes Mar 13, 2018
0e6efa5
Merge branch 'master' of https://github.com/coverney/InteractiveProgr…
elizabethtawes Mar 13, 2018
5d2aeaf
Pickled 100 Hurricanes and ploted them and it works *hairflip*
elizabethtawes Mar 13, 2018
4ea8df4
Update MVP3 with minor aesthetic changes
elizabethtawes Mar 13, 2018
c8a1b53
Working on invisible hover
elizabethtawes Mar 13, 2018
6a8f15a
Vicky and Cassandra worked black magic and now things work
elizabethtawes Mar 13, 2018
ac71558
added the time, duration, and category attributes to Hurricans
Mar 13, 2018
ca51832
Merge branch 'master' of https://github.com/coverney/InteractiveProgr…
Mar 13, 2018
5dfe7f4
Started documentation of Model and Hurricane classes
Mar 14, 2018
56addb0
Finished documentation for python scripts
Mar 15, 2018
8797d25
Updated README
Mar 16, 2018
e8e417a
Updated README
Mar 16, 2018
72d1efa
Making color coded categories prettier
elizabethtawes Mar 16, 2018
373d74c
Merge branch 'master' of https://github.com/coverney/InteractiveProgr…
elizabethtawes Mar 16, 2018
ed6753f
Made a huge pickle file for almost all of the Hurricane data
Mar 16, 2018
a933882
Merge branch 'master' of https://github.com/coverney/InteractiveProgr…
Mar 16, 2018
e317574
A single picture of our glorious map
elizabethtawes Mar 16, 2018
d30d56b
adding a glorious image of our map
elizabethtawes Mar 16, 2018
c419875
now with more lovely images from our beloved map
elizabethtawes Mar 16, 2018
90630cd
actual pictures now because I added extensions
elizabethtawes Mar 16, 2018
2f3fa2f
Made pickle file for all 13000 hurricanes and plotted them in Map.py
Mar 16, 2018
44e172b
Merge branch 'master' of https://github.com/coverney/InteractiveProgr…
Mar 16, 2018
5b39f09
Rearranged some files
Mar 16, 2018
f86f675
Added Project Write-up and Reflection
Mar 16, 2018
0271ddf
Added linked to project write-up
Mar 16, 2018
db5350a
Final push of code
Mar 16, 2018
b50090a
Merge branch 'master' of https://github.com/coverney/InteractiveProgr…
Mar 16, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .idea/InteractiveProgramming.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

594 changes: 594 additions & 0 deletions .idea/workspace.xml

Large diffs are not rendered by default.

589 changes: 589 additions & 0 deletions Bokeh Archive/Bokeh 5-minute Overview .ipynb

Large diffs are not rendered by default.

483 changes: 483 additions & 0 deletions Bokeh Archive/Bokeh Tutorial.ipynb

Large diffs are not rendered by default.

69 changes: 69 additions & 0 deletions Bokeh Archive/Color_palette.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bokeh Plot</title>

<link rel="stylesheet" href="https://cdn.pydata.org/bokeh/release/bokeh-0.12.10.min.css" type="text/css" />

<script type="text/javascript" src="https://cdn.pydata.org/bokeh/release/bokeh-0.12.10.min.js"></script>
<script type="text/javascript">
Bokeh.set_log_level("info");
</script>
<style>
html {
width: 100%;
height: 100%;
}
body {
width: 90%;
height: 100%;
margin: auto;
}
</style>
</head>
<body>

<div class="bk-root">
<div class="bk-plotdiv" id="028037fe-36a3-47e4-8840-9c2bc24f6629"></div>
</div>

<script type="text/javascript">
(function() {
var fn = function() {
Bokeh.safely(function() {
(function(root) {
function embed_document(root) {
var docs_json = {"1171eae2-a66d-45d4-ab08-47ae7fda04c1":{"roots":{"references":[{"attributes":{},"id":"1b6c6b2d-34e8-4ea8-b96c-8ffe614c2242","type":"BasicTickFormatter"},{"attributes":{},"id":"921b81a0-a0d8-489c-b3f0-dc36a36bc73e","type":"BasicTickFormatter"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#1f77b4"},"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"radius":{"units":"data","value":0.5},"x":{"field":"x"},"y":{"field":"y"}},"id":"ebd30ff2-7b90-4412-b500-89088d56b712","type":"Circle"},{"attributes":{},"id":"321e883b-c5b9-4dcf-9a35-5cbc160d8886","type":"BasicTicker"},{"attributes":{"plot":{"id":"6da4c4c8-be0c-4abd-9884-2b709c7c07b2","subtype":"Figure","type":"Plot"},"ticker":{"id":"321e883b-c5b9-4dcf-9a35-5cbc160d8886","type":"BasicTicker"}},"id":"b7f0b638-d748-4e38-8dc1-3fdaf38af89e","type":"Grid"},{"attributes":{"items":[{"id":"1dca588b-e516-4c06-86db-9f5a35958e28","type":"LegendItem"}],"plot":{"id":"6da4c4c8-be0c-4abd-9884-2b709c7c07b2","subtype":"Figure","type":"Plot"}},"id":"3e1f27a0-5165-4cd4-8918-78348fe608d0","type":"Legend"},{"attributes":{"factors":["hi","lo"],"palette":["#ef8a62","#67a9cf"]},"id":"41bfe958-6fc8-44df-a6dd-d37aa4dd9b04","type":"CategoricalColorMapper"},{"attributes":{"label":{"field":"label"},"renderers":[{"id":"ba9ffd48-b2b9-4852-8fa9-088cf586c40c","type":"GlyphRenderer"}]},"id":"1dca588b-e516-4c06-86db-9f5a35958e28","type":"LegendItem"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_scroll":"auto","active_tap":"auto","tools":[{"id":"df1bcfc6-3334-4c81-993a-c1af2f2fa553","type":"SaveTool"}]},"id":"0b7c5e01-8edc-4352-b885-13346f0966b6","type":"Toolbar"},{"attributes":{"plot":null,"text":""},"id":"9863bacf-f6d5-499b-bba5-b61ce8822418","type":"Title"},{"attributes":{"below":[{"id":"f5f7d2e5-42bf-4806-bd68-6e4e7b5e8573","type":"LinearAxis"}],"left":[{"id":"38b26bc6-2197-4364-858b-207be4bf75d9","type":"LinearAxis"}],"plot_height":300,"renderers":[{"id":"f5f7d2e5-42bf-4806-bd68-6e4e7b5e8573","type":"LinearAxis"},{"id":"b7f0b638-d748-4e38-8dc1-3fdaf38af89e","type":"Grid"},{"id":"38b26bc6-2197-4364-858b-207be4bf75d9","type":"LinearAxis"},{"id":"61111938-3050-4a0b-ade5-dedac65ca8cd","type":"Grid"},{"id":"3e1f27a0-5165-4cd4-8918-78348fe608d0","type":"Legend"},{"id":"ba9ffd48-b2b9-4852-8fa9-088cf586c40c","type":"GlyphRenderer"}],"title":{"id":"9863bacf-f6d5-499b-bba5-b61ce8822418","type":"Title"},"toolbar":{"id":"0b7c5e01-8edc-4352-b885-13346f0966b6","type":"Toolbar"},"x_range":{"id":"656cc6ae-7fb1-4caa-bcd9-d843b7392b3c","type":"Range1d"},"x_scale":{"id":"2f3e14ca-ae49-4765-b6a7-d9daafad62e2","type":"LinearScale"},"y_range":{"id":"d4dc9ec0-9bbe-4011-8ca1-d9b29dda3e5a","type":"Range1d"},"y_scale":{"id":"eb7e2f2e-e9c0-40d0-9981-0edcf856cd26","type":"LinearScale"}},"id":"6da4c4c8-be0c-4abd-9884-2b709c7c07b2","subtype":"Figure","type":"Plot"},{"attributes":{},"id":"2f3e14ca-ae49-4765-b6a7-d9daafad62e2","type":"LinearScale"},{"attributes":{"source":{"id":"3cfd43b6-1b3f-4e79-a38a-f8e5453236a0","type":"ColumnDataSource"}},"id":"9936d572-251a-4cad-83bc-555bbaf149bc","type":"CDSView"},{"attributes":{"callback":null,"end":7},"id":"656cc6ae-7fb1-4caa-bcd9-d843b7392b3c","type":"Range1d"},{"attributes":{},"id":"df1bcfc6-3334-4c81-993a-c1af2f2fa553","type":"SaveTool"},{"attributes":{"data_source":{"id":"3cfd43b6-1b3f-4e79-a38a-f8e5453236a0","type":"ColumnDataSource"},"glyph":{"id":"871883c7-6c99-4e54-a396-6d3429d8f683","type":"Circle"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"ebd30ff2-7b90-4412-b500-89088d56b712","type":"Circle"},"selection_glyph":null,"view":{"id":"9936d572-251a-4cad-83bc-555bbaf149bc","type":"CDSView"}},"id":"ba9ffd48-b2b9-4852-8fa9-088cf586c40c","type":"GlyphRenderer"},{"attributes":{},"id":"eb7e2f2e-e9c0-40d0-9981-0edcf856cd26","type":"LinearScale"},{"attributes":{"formatter":{"id":"921b81a0-a0d8-489c-b3f0-dc36a36bc73e","type":"BasicTickFormatter"},"plot":{"id":"6da4c4c8-be0c-4abd-9884-2b709c7c07b2","subtype":"Figure","type":"Plot"},"ticker":{"id":"321e883b-c5b9-4dcf-9a35-5cbc160d8886","type":"BasicTicker"}},"id":"f5f7d2e5-42bf-4806-bd68-6e4e7b5e8573","type":"LinearAxis"},{"attributes":{"formatter":{"id":"1b6c6b2d-34e8-4ea8-b96c-8ffe614c2242","type":"BasicTickFormatter"},"plot":{"id":"6da4c4c8-be0c-4abd-9884-2b709c7c07b2","subtype":"Figure","type":"Plot"},"ticker":{"id":"7d773c7d-5d65-4514-8cf7-44bdf7099370","type":"BasicTicker"}},"id":"38b26bc6-2197-4364-858b-207be4bf75d9","type":"LinearAxis"},{"attributes":{},"id":"7d773c7d-5d65-4514-8cf7-44bdf7099370","type":"BasicTicker"},{"attributes":{"dimension":1,"plot":{"id":"6da4c4c8-be0c-4abd-9884-2b709c7c07b2","subtype":"Figure","type":"Plot"},"ticker":{"id":"7d773c7d-5d65-4514-8cf7-44bdf7099370","type":"BasicTicker"}},"id":"61111938-3050-4a0b-ade5-dedac65ca8cd","type":"Grid"},{"attributes":{"callback":null,"column_names":["x","y","label"],"data":{"label":["hi","lo","hi","lo","hi","lo"],"x":[1,2,3,4,5,6],"y":[2,1,2,1,2,1]}},"id":"3cfd43b6-1b3f-4e79-a38a-f8e5453236a0","type":"ColumnDataSource"},{"attributes":{"fill_color":{"field":"label","transform":{"id":"41bfe958-6fc8-44df-a6dd-d37aa4dd9b04","type":"CategoricalColorMapper"}},"line_color":{"field":"label","transform":{"id":"41bfe958-6fc8-44df-a6dd-d37aa4dd9b04","type":"CategoricalColorMapper"}},"radius":{"units":"data","value":0.5},"x":{"field":"x"},"y":{"field":"y"}},"id":"871883c7-6c99-4e54-a396-6d3429d8f683","type":"Circle"},{"attributes":{"callback":null,"end":3},"id":"d4dc9ec0-9bbe-4011-8ca1-d9b29dda3e5a","type":"Range1d"}],"root_ids":["6da4c4c8-be0c-4abd-9884-2b709c7c07b2"]},"title":"Bokeh Application","version":"0.12.10"}};
var render_items = [{"docid":"1171eae2-a66d-45d4-ab08-47ae7fda04c1","elementid":"028037fe-36a3-47e4-8840-9c2bc24f6629","modelid":"6da4c4c8-be0c-4abd-9884-2b709c7c07b2"}];

root.Bokeh.embed.embed_items(docs_json, render_items);
}

if (root.Bokeh !== undefined) {
embed_document(root);
} else {
var attempts = 0;
var timer = setInterval(function(root) {
if (root.Bokeh !== undefined) {
embed_document(root);
clearInterval(timer);
}
attempts++;
if (attempts > 100) {
console.log("Bokeh: ERROR: Unable to embed document because BokehJS library is missing")
clearInterval(timer);
}
}, 10, root)
}
})(window);
});
};
if (document.readyState != "loading") fn();
else document.addEventListener("DOMContentLoaded", fn);
})();

</script>
</body>
</html>
19 changes: 19 additions & 0 deletions Bokeh Archive/Color_palette.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from bokeh.io import show
from bokeh.models import ColumnDataSource, CategoricalColorMapper
from bokeh.palettes import RdBu3
from bokeh.plotting import figure

source = ColumnDataSource(dict(
x=[1, 2, 3, 4, 5, 6],
y=[2, 1, 2, 1, 2, 1],
label=['hi', 'lo', 'hi', 'lo', 'hi', 'lo']
))
color_mapper = CategoricalColorMapper(factors=['hi', 'lo'], palette=[RdBu3[2], RdBu3[0]])

p = figure(x_range=(0, 7), y_range=(0, 3), height=300, tools='save')
p.circle(
x='x', y='y', radius=0.5, source=source,
color={'field': 'label', 'transform': color_mapper},
legend='label'
)
show(p)
Loading