@header@
matplotlib.texmanager | index /usr/local/lib/python2.5/site-packages/matplotlib/texmanager.py |
This module supports embedded TeX expressions in matplotlib via dvipng
and dvips for the raster and postscript backends. The tex and
dvipng/dvips information is cached in ~/.matplotlib/tex.cache for reuse between
sessions
Requirements:
tex
*Agg backends: dvipng
PS backend: latex w/ psfrag, dvips, and Ghostscript 8.51
(older versions do not work properly)
Backends:
Only supported on *Agg and PS backends currently
For raster output, you can get RGBA numerix arrays from TeX expressions
as follows
texmanager = TexManager()
s = r'\TeX\ is Number $\displaystyle\sum_{n=1}^\inftyrac{-e^{i\pi}}{2^n}$!'
Z = self.texmanager.get_rgba(s, size=12, dpi=80, rgb=(1,0,0))
To enable tex rendering of all text in your matplotlib figure, set
text.usetex in your matplotlibrc file (http://matplotlib.sf.net/matplotlibrc)
or include these two lines in your script:
from matplotlib import rc
rc('text', usetex=True)
Modules | ||||||
|
Classes | ||||||||||
|
Functions | ||
|
Data | ||
Float = 'd' absolute = <ufunc 'absolute'> cmd_split = ';' debug = False rcParams = {'axes.axisbelow': False, 'axes.edgecolor': 'k', 'axes.facecolor': 'w', 'axes.formatter.limits': (-7, 7), 'axes.grid': False, 'axes.hold': True, 'axes.labelcolor': 'k', 'axes.labelsize': 12, 'axes.linewidth': 1.0, 'axes.titlesize': 14, ...} sqrt = <ufunc 'sqrt'> verbose = <matplotlib.Verbose instance at 0xb7b00fec> |