examples use matplotlib.pyplot instead of pylab