Earthquakes

import csv
def setup():
size(500, 500)

with open("quakes.csv") as f:
reader = csv.reader(f)
header = reader.next() # Skip the header row.

global magnitudes
magnitudes = []

for row in reader:
magnitude = float(row[4])
magnitudes.append(magnitude)
def draw():
background(0)
scalar=10
x = 0

for magnitude in magnitudes:
rect(x, (height/3)*2, 6, (magnitude*scalar)*(-1))
x+=6
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.