Copied over LaTeX style function for matplotlib from PDA. #85