gwpyのTime SeriesやFrequency Seriesは、四則演算や指数の演算がそのまま使える。
1 t = np.linspace(start=-10, stop=10, num=201) 2 A = TimeSeries(np.sin(t), t0=1261872018) 3 plot = Plot(A, A+1, 2*A, A**2) 4 ax = plot.gca().legend(['A', 'A+1', '2*A', 'A**2'], fontsize=18) 5 plot.show()