
from matplotlib.pyplot import *

tb.open('lightcurve.tab')
nrows=tb.nrows()

colnames=tb.colnames()[1:]

time=tb.getcol('time')

clf()
figure(1)

for colname in colnames:
    lab=re.sub('.txt','',colname)
    data=tb.getcol(colname)+1e-4
    semilogy(time, data)
    annotate(lab, [time[239], data[239]])

ylim(1e-4,1.2)
title('Light curves: SST4')
xlabel('Time (minutes)')
ylabel('Flux (Jy)')

