Layout Constrained Matplotlib Plot Function Mathematical Definition