for i in range (1,20): sample_hor.move(159.0 + 0.2*i) time.sleep(1.0)