Changed order so that matplotlib lab is in the right place.