av = create_averager(arr, 2, 0.1)

av.setMonitored(True)




tscan((arr, av, av.samples) , 10, 0.1)

 
#set_preference(Preference.PLOT_TYPES, {av.name:'minmax'})
#res= tscan((sin, av, av.samples), 10, 0.1)

#while True:
#    print sin.read()
#    time.sleep(0.1)


#p = plot([1,2,3,5])[0]
#y1=p.getAxis(p.AxisId.Y)

#y1.setRange(-10, 10)

#set_return (4)