/** @serie : chile earthquakes data set
@author: coyarzun@error404.cl

Despliegue simultáneo de varios gráficos:
Latitud v/s tiempo (estático)
Latitud v/s longitud (animado)
Magnitud v/s profundidad (animado)
*/ PFont font; int fontsize = 12; String[] file; Earthquake[] dataset; void setup(){ size(720,400); colorMode(HSB); font = loadFont("AndaleMono-12.vlw"); textFont(font, fontsize); parseData("earthquakes.data"); calcLimits(); } void draw(){ background(0); smooth(); fill(255); textAlign(LEFT); text("CHILE EARTHQUAKES DATA", 2, fontsize); graphLatInTime(20,20,160,75); int auxdate = minDateIndex+frameCount%(maxDateIndex-minDateIndex); graphFrameLatInTime(20,110,160,75,auxdate); graphFrameLatLong(190,20,100,165,auxdate); graphFrameMagDepth(300,20,100,165,auxdate); }