my webscience assignment 6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<html> | |
<head> | |
<style> | |
svg { | |
font: 10px sans-serif; | |
} | |
.node { | |
fill: #fff; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
svg { | |
font: 10px sans-serif; | |
} | |
.node { | |
stroke: #fff; | |
stroke-width: 1.5px; | |
} |
Name: Erika Siregar
- Assignment : Visualization Implementation (VI8)
- Course: Information Visualization (CS725)
- Semester : Spring 2016
- Tutorial from: >* http://bl.ocks.org/davelandry/9029781
Name: Erika Siregar
- Assignment : Visualization Implementation (VI 10)
- Theme : Faceting Concepts
- Course: Information Visualization (CS725)
- Semester : Spring 2016
- Tutorial from : http://bl.ocks.org/bobmonteverde/2070069
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://memento-damage.cs.odu.edu/api/damage/[the input URI-M] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# %matplotlib inline # just shows the graphic inline with the code but it's not interactive. | |
%matplotlib notebook | |
import matplotlib.pyplot as plt | |
import numpy as np | |
x = np.linspace(0, 2, 100) #create an equal-spaced 100 numbers range from 0 - 2 | |
plt.plot(x, x, 'b^', x, x**2, 'r>', x, x**3, 'g+') | |
plt.xlabel('x label') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%matplotlib notebook | |
import matplotlib.pyplot as plt | |
import numpy as np | |
x = np.arange(0.0, 2, 0.01) | |
y1 = np.sin(2 * np.pi * x) | |
y2 = 1.2 * np.sin(4 * np.pi * x) | |
fig, (ax, ax1) = plt.subplots(2, 1, sharex=True) | |
ax.plot(x, y1, x, y2, color='black') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
linear_data = np.array([1,2,3,4,5,6,7,8]) | |
exponential_data = linear_data**2 | |
plt.figure() | |
plt.plot(linear_data, '-o', exponential_data, '-o') | |
# fill the area between the linear data and exponential data | |
plt.gca().fill_between(range(len(linear_data)), |