def run(ds):
    pw.plot(data, clear=True)
    for m, c in zip(methods, colors):
        d1 = data.copy()
        t = time.clock()
        d2 = NiDAQ.downsample(d1, ds, method=m)
        print("Method %d: %f" % (m, time.clock()-t))
        p = pw.plot(y=d2, x=np.linspace(0, len(d2)*ds, len(d2)), pen=mkPen(c))
        p.setZValue(10000)
        #pw.plot(d2, pen=mkPen(colors[i-1]))