plotting + computing figures from my thesis in matplotlib