@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
 
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}^\infty rac{-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
       
md5
os
shutil
sys

 
Classes
       
TexManager

 
class TexManager
    Convert strings to dvi files using TeX, caching the results to a
working dir
 
  Methods defined here:
__init__(self)
get_dvipng_version(self)
get_prefix(self, tex)
get_ps_bbox(self, tex)
get_rgba(self, tex, fontsize=10, dpi=80, rgb=(0, 0, 0))
Return tex string as an rgba array
make_dvi(self, tex, force=0)
make_png(self, tex, dpi, force=0)
make_ps(self, tex, dpi, force=0)

Data and other attributes defined here:
path = '/home/jdhunter'
texcache = '/home/jdhunter/.tex.cache'

 
Functions
       
array(...)
array(sequence, typecode=None, copy=1, savespace=0) will return a new array formed from the given (potentially nested) sequence with type given by typecode.  If no typecode is given, then the type will be determined as the minimum type required to hold the objects in sequence.  If copy is zero and sequence is already an array, a reference will be returned.  If savespace is nonzero, the new array will maintain its precision in operations.
readpng(...)
readpng
zeros(...)
zeros((d1,...,dn),typecode='l',savespace=0) will return a new array of shape (d1,...,dn) and type typecode with all it's entries initialized to zero.  If savespace is nonzero the array will be a spacesaver array.

 
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'>
@footer@