change pylab sample