ignorant q: continuous refreshing a plot with different data

Hello all,

Please pardon my ignorance as I am fairly new to matplotlib.

I have 1000 sets of (x,y) data. I would like to cycle through this data by
graphing set 1 then 2 then ... 1000.

How can I refresh a plot without closing and reopening that plot?

Any pointer would be greatly appreciated.