Changed imports in matplotlib from scipy to numpy.