Writing Mathematical Expressions with LaTeX
LaTeX is extensively used in Python. In this appendix there are many examples that can be useful to represent LaTeX expressions inside Python implementations. This same information can be found at the link http://matplotlib.org/users/mathtext.html.
You can enter the LaTeX expression directly as an argument of various functions that can accept it. For example, the title() function that draws a chart title.
import matplotlib.pyplot as plt%matplotlib inlineplt.title(r’$\alpha > \beta$’)
With IPython Notebook in a Markdown Cell
You can enter the LaTeX expression between two ’$$’. ...