@header@
matplotlib.texmanager | index /usr/lib/python2.4/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 ~/.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)
Modules | ||||||
|
Classes | ||||||||||
|
Functions | ||
|
Data | ||
Float = 'd' absolute = <ufunc 'absolute'> debug = False rcParams = {'axes.edgecolor': 'black', 'axes.facecolor': 'white', 'axes.grid': False, 'axes.hold': True, 'axes.labelcolor': 'black', 'axes.labelsize': 12.0, 'axes.linewidth': 1.0, 'axes.titlesize': 14.0, 'backend': 'GTKAgg', 'datapath': '/usr/share/matplotlib', ...} sqrt = <ufunc 'sqrt'> verbose = <matplotlib.Verbose instance> |