/**
@serie : chile earthquakes data set
@author: coyarzun@error404.cl
Gráficos de latitudes v/s tiempo, estático y 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,320,150);
int auxdate = minDateIndex+frameCount%(maxDateIndex-minDateIndex);
graphFrameLatInTime(360,20,320,150,auxdate);
}