@header@
 
 
matplotlib.texmanager
index
/home/jdhunter/dev/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}^\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)
or include these two lines in your script:
from matplotlib import rc
rc('text', usetex=True)

 
Modules
       
glob
md5
os
shutil
sys
warnings

 
Classes
       
TexManager

 
class TexManager
    Convert strings to dvi files using TeX, caching the results to a
working dir
 
  Methods defined here:
__init__(self)
get_basefile(self, tex, fontsize, dpi=None)
get_font_config(self)
get_font_preamble(self)
get_ps_bbox(self, tex, fontsize)
get_rgba(self, tex, fontsize=None, dpi=None, rgb=(0, 0, 0))
Return tex string as an rgba array
get_shell_cmd(self, *args)
On windows, changing directories can be complicated by the presence of 
multiple drives. get_shell_cmd deals with this issue.
make_dvi(self, tex, fontsize, force=0)
make_png(self, tex, fontsize, dpi, force=0)
make_ps(self, tex, fontsize, force=0)
make_tex(self, tex, fontsize)

Data and other attributes defined here:
arrayd = {}
configdir = '/home/jdhunter/.matplotlib'
cursive = ('pzc', r'\usepackage{chancery}')
dvipngVersion = '1.9'
font_family = 'serif'
font_info = {'avant garde': ('pag', r'\usepackage{avant}'), 'bookman': ('pbk', r'\renewcommand{\rmdefault}{pbk}'), 'charter': ('pch', r'\usepackage{charter}'), 'computer modern roman': ('cmr', ''), 'computer modern sans serif': ('cmss', ''), 'computer modern typewriter': ('cmtt', ''), 'courier': ('pcr', r'\usepackage{courier}'), 'helvetica': ('phv', r'\usepackage{helvet}'), 'monospace': ('cmtt', ''), 'new century schoolbook': ('pnc', r'\renewcommand{\rmdefault}{pnc}'), ...}
monospace = ('cmtt', '')
oldcache = '/home/jdhunter/.tex.cache'
oldpath = '/home/jdhunter'
postscriptd = {}
pscnt = 0
sans_serif = ('cmss', '')
serif = ('cmr', '')
texcache = '/home/jdhunter/.matplotlib/tex.cache'

 
Functions
       
get_dvipng_version()
readpng(...)
readpng

 
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 0x8250fec>
@footer@