animating data with matplotlib