relplaced pylab inline by matplotlib