replaced matplotlib.pylab -> numpy