How to show an easy latex-formula in python? Maybe numpy is the right choice?
EDIT:
I have python code like:
a = '\frac{a}{b}'
and want to print this in a graphical output (like matplotlib).
How to show an easy latex-formula in python? Maybe numpy is the right choice?
EDIT:
I have python code like:
a = '\frac{a}{b}'
and want to print this in a graphical output (like matplotlib).
As suggested by Andrew little work around using matplotlib.
Draw with matplotlib,
Without ticks:
Matplotlib can already do TeX, by setting
text.usetex: True
in~/.matplotlib/matplotlibrc
. Then, you can just use TeX in all displayed strings, e.g.,(be sure to use the
$
as in normal in-line TeX!). Ther
before the string means that no substitutions are made; otherwise you have to escape the slashes as mentioned.More info at the matplotlib site.
Creating mathematical formulas in Pandas.