New release
matplotlib 0.98.3 is a major release which requires python2.4 or 2.5 and numpy 1.1. It contains significant improvements and may require some advanced users to update their code; see migration and API_CHANGES. We are supporting a maintenance branch of the older code available at matplotlib 0.91.4. Basemap users see basemap-readme for upgrade instructions

Donate
Help support matplotlib development by donating to fund developer sprints and other matplotlib development costs.

Matplotlib
Home
What's New
Download
Installing
Screenshots
Examples (zip)
Mailing lists
Donate

Documentation
Tutorial
User's Guide 
API tutorial
Event handling
API Reference
FAQ
Cookbook / wiki
pylab interface
Class library
Backends
Toolkits
Fonts
Interactive
Goals

Other
Credits
License

  
 
 
matplotlib.mathtext
index
/home/jdhunter/dev/lib64/python2.5/site-packages/matplotlib/mathtext.py

OVERVIEW
 
  mathtext is a module for parsing TeX expressions and drawing them
  into a matplotlib.ft2font image buffer.  You can draw from this
  buffer into your backend.
 
  A large set of the TeX symbols are provided (see below).
  Subscripting and superscripting are supported, as well as the
  over/under style of subscripting with \sum, \int, etc.
 
  The module uses pyparsing to parse the TeX expression, an so can
  handle fairly complex TeX expressions Eg, the following renders
  correctly
 
  s = r'$\mathcal{R}\prod_{i=\alpha\mathcal{B}}^\infty a_i\sin(2 \pi f x_i)$'
 
  Different fonts may be selected:
    \mathcal      Calligraphic fonts
    \mathrm       Roman (upright) font
    \mathit       Italic font
    \mathtt       Typewriter (monospaced) font, similar to Courier
 
  Additionally, if using the STIX fonts:
    \mathbb       Blackboard (double-struck) font
    \mathcircled  Circled characters
    \mathfrak     Fraktur (Gothic-style) font
    \mathscr      Script (cursive) font
    \mathsf       Sans-serif font
 
  The following accents are provided: \hat, \breve, \grave, \bar,
  \acute, \tilde, \vec, \dot, \ddot.  All of them have the same
  syntax, eg to make an overbar you do \bar{o} or to make an o umlaut
  you do \ddot{o}.  The shortcuts are also provided, eg: \"o \'e \`e
  \~n \.x \^y
 
  The spacing elements \ , \/ and \hspace{num} are provided.  \/
  inserts a small space, and \hspace{num} inserts a fraction of the
  current fontsize.  Eg, if num=0.5 and the fontsize is 12.0,
  hspace{0.5} inserts 6 points of space
 
 
 
  If you find TeX expressions that don't parse or render properly,
  please email me, but please check KNOWN ISSUES below first.
 
REQUIREMENTS
 
  mathtext requires matplotlib.ft2font.  Set BUILD_FT2FONT=True in
  setup.py.  See BACKENDS below for a summary of availability by
  backend.
 
LICENSING:
 
  The computer modern fonts this package uses are part of the BaKoMa
  fonts, which are (now) free for commercial and noncommercial use and
  redistribution; see license/LICENSE_BAKOMA in the matplotlib src
  distribution for redistribution requirements.
 
USAGE:
 
  See http://matplotlib.sourceforge.net/tutorial.html#mathtext for a
  tutorial introduction.
 
  Any text element (xlabel, ylabel, title, text, etc) can use TeX
  markup, as in
 
    xlabel(r'$\Delta_i$')
           ^
        use raw strings
 
  Math and non-math can be interpresed in the same string.  E.g.,
 
    r'My label $x_i$'.
 
  A large set of the TeX symbols are provided.  Subscripting and
  superscripting are supported, as well as the over/under style of
  subscripting with \sum, \int, etc.
 
 
  Allowed TeX symbols:
 
  $ \% \AA \AE \BbbC \BbbN \BbbP \BbbQ \BbbR \BbbZ \Bumpeq \Cap \Colon
  \Cup \Delta \Doteq \Downarrow \Equiv \Finv \Gamma \H \Im \L \Lambda
  \Ldsh \Leftarrow \Leftrightarrow \Lleftarrow \Lsh \Nearrow \Nwarrow
  \O \OE \Omega \P \Phi \Pi \Psi \Rdsh \Re \Rightarrow \Rrightarrow
  \Rsh \S \Searrow \Sigma \Subset \Supset \Swarrow \Theta \Uparrow
  \Updownarrow \Upsilon \Vdash \Vert \Vvdash \Xi \_ \__sqrt__ \ac
  \acute \acwopencirclearrow \adots \ae \aleph \alpha \angle \approx
  \approxeq \approxident \arceq \ast \asymp \backcong \backprime
  \backsim \backsimeq \backslash \bar \barleftarrow \barwedge \because
  \beta \beth \between \bigcap \bigcirc \bigcup \bigodot \bigoplus
  \bigotimes \bigstar \bigtriangledown \bigtriangleup \biguplus
  \bigvee \bigwedge \blacksquare \blacktriangle \blacktriangledown
  \blacktriangleleft \blacktriangleright \bot \bowtie \boxbar \boxdot
  \boxminus \boxplus \boxtimes \breve \bullet \bumpeq \c \candra \cap
  \carriagereturn \cdot \cdotp \cdots \check \checkmark \chi \circ
  \circeq \circledR \circledS \circledast \circledcirc \circleddash
  \circumflexaccent \clubsuit \clubsuitopen \colon \coloneq
  \combiningacuteaccent \combiningbreve \combiningdiaeresis
  \combiningdotabove \combininggraveaccent \combiningoverline
  \combiningrightarrowabove \combiningtilde \complement \cong \coprod
  \copyright \cup \cupdot \curlyeqprec \curlyeqsucc \curlyvee
  \curlywedge \curvearrowleft \curvearrowright \cwopencirclearrow \d
  \dag \daleth \danger \dashv \ddag \ddddot \dddot \ddot \ddots
  \degree \delta \diamond \diamondsuit \digamma \div \divideontimes
  \dot \doteq \dotminus \dotplus \dots \doublebarwedge ? \downarrow
  \downdownarrows \downharpoonleft \downharpoonright \downzigzagarrow
  \ell \emdash \emptyset \endash \enspace \epsilon \eqcirc \eqcolon
  \eqdef \eqgtr \eqless \eqsim \equiv \eta \eth \exists \fallingdotseq
  \flat \forall \frakC \frakZ \frown \gamma \geq \geqq \gg \ggg \gimel
  \gneqq \gnsim \grave \greater \gtrdot \gtreqless \gtrless \gtrsim
  \hat \heartsuit \hookleftarrow \hookrightarrow \i \iiint \iint
  \imageof \imath \in \infty \int \intercal \invnot \iota \jmath \k
  \kappa \kernelcontraction \l \lambda \lambdabar \lasp \lbrace
  \lbrack \lceil \leftangle \leftarrow \leftarrowtail \leftbrace
  \leftharpoonaccent \leftharpoondown \leftharpoonup \leftleftarrows
  \leftparen \leftrightarrow \leftrightarrows \leftrightharpoons
  \leftthreetimes \leq \leqq \less \lessdot \lesseqgtr \lessgtr
  \lesssim \lfloor \ll \llcorner \lll \lneqq \lnsim \looparrowleft
  \looparrowright \lq \lrcorner \ltimes \maltese \mapsdown \mapsfrom
  \mapsto \mapsup \measeq \measuredangle \mho \mid \minus \models \mp
  \mu \multimap \nLeftarrow \nLeftrightarrow \nRightarrow \nVDash
  \nVdash \nabla \napprox \natural \ncong \ne \nearrow \neg \nequiv
  \nexists \ngeq \ngtr \ni \nleftarrow \nleftrightarrow \nleq \nless
  \nmid \not \notin \nparallel \nprec \nrightarrow \nsim \nsime
  \nsubset \nsubseteq \nsucc \nsupset \nsupseteq \ntriangleleft
  \ntrianglelefteq \ntriangleright \ntrianglerighteq \nu \nvDash
  \nvdash \nwarrow \o \obar \ocirc \odot \oe \oiiint \oiint \oint
  \omega \ominus \oplus \origof \oslash \otimes \overarc
  \overleftarrow \overleftrightarrow \parallel \partial \phi \pi
  \pitchfork \pm \prec \preccurlyeq \preceq \precnsim \precsim \prime
  \prod \propto \prurel \psi \quad \questeq \rasp \rbrace \rbrack
  \rceil \rfloor \rho \rightangle \rightarrow \rightarrowbar
  \rightarrowtail \rightbrace \rightharpoonaccent \rightharpoondown
  \rightharpoonup \rightleftarrows \rightleftharpoons \rightparen
  \rightrightarrows \rightthreetimes \rightzigzagarrow \risingdotseq
  \rq \rtimes \scrB \scrE \scrF \scrH \scrI \scrL \scrM \scrR \scre
  \scrg \scro \scurel \searrow \sharp \sigma \sim \simeq \slash
  \smallsetminus \smile \solbar \spadesuit \spadesuitopen
  \sphericalangle \sqcap \sqcup \sqsubset \sqsubseteq \sqsupset
  \sqsupseteq \ss \star \stareq \sterling \subset \subseteq \subsetneq
  \succ \succcurlyeq \succeq \succnsim \succsim \sum \supset \supseteq
  \supsetneq \swarrow \t \tau \textasciiacute \textasciicircum
  \textasciigrave \textasciitilde \textexclamdown \textquestiondown
  \textquotedblleft \textquotedblright \therefore \theta \thickspace
  \thinspace \tilde \times \to \top \triangledown \triangleleft
  \trianglelefteq \triangleq \triangleright \trianglerighteq
  \turnednot \twoheaddownarrow \twoheadleftarrow \twoheadrightarrow
  \twoheaduparrow \ulcorner \underbar \uparrow \updownarrow
  \updownarrowbar \updownarrows \upharpoonleft \upharpoonright \uplus
  \upsilon \upuparrows \urcorner \vDash \varepsilon \varkappa
  \varnothing \varphi \varpi \varrho \varsigma \vartheta \vartriangle
  \vartriangleleft \vartriangleright \vdash \vdots \vec \vee \veebar
  \veeeq \vert \wedge \wedgeq \widehat \widetilde \wp \wr \xi \yen
  \zeta \{ \| \}
 
BACKENDS
 
  mathtext currently works with all backends.
 
KNOWN ISSUES:
 
  - Certainly there are some...
 
Author    : John Hunter <jdhunter@ace.bsd.uchicago.edu>
            Michael Droettboom <mdroe@stsci.edu>
               (rewrite based on TeX box layout algorithms)
Copyright : John Hunter (2004,2005)
License   : matplotlib license (PSF compatible)

 
Modules
       
matplotlib._png
matplotlib.colors
numpy
os
unicodedata

 
Classes
       
__builtin__.object
Fonts
StandardPsFonts
TruetypeFonts
BakomaFonts
UnicodeFonts
StixFonts
StixSansFonts
GlueSpec
MathTextParser
MathtextBackend
MathtextBackendAggRender
MathtextBackendBitmapRender
MathtextBackendBbox
MathtextBackendCairo
MathtextBackendPdf
MathtextBackendPs
MathtextBackendSvg
Node
Box
Hbox
List
Hlist
AutoHeightChar
AutoWidthChar
HCentered
SubSuperCluster
VCentered
Vlist
Rule
Hrule
Vrule
Vbox
Char
Accent
Glue
Fil
Fill
Filll
NegFil
NegFill
NegFilll
SsGlue
Kern
Parser
Ship
exceptions.Warning(exceptions.Exception)
MathTextWarning

 
class Accent(Char)
    The font metrics need to be dealt with differently for accents,
since they are already offset correctly from the baseline in
TrueType fonts.
 
 
Method resolution order:
Accent
Char
Node
__builtin__.object

Methods defined here:
grow(self)
render(self, x, y)
Render the character to the canvas
shrink(self)

Methods inherited from Char:
__init__(self, c, state)
__internal_repr__(self)
get_kerning(self, next)
Return the amount of kerning between this and the given
character.  Called when characters are strung together into
Hlists to create Kern nodes.
is_slanted(self)

Methods inherited from Node:
__repr__(self)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class AutoHeightChar(Hlist)
    A class that will create a character as close to the given height
and depth as possible.  When using a font with multiple height versions
of some characters (such as the BaKoMa fonts), the correct glyph will
be selected, otherwise this will always just return a scaled version
of the glyph.
 
 
Method resolution order:
AutoHeightChar
Hlist
List
Box
Node
__builtin__.object

Methods defined here:
__init__(self, c, height, depth, state, always=False)

Methods inherited from Hlist:
hpack(self, w=0.0, m='additional')
The main duty of hpack is to compute the dimensions of the
resulting boxes, and to adjust the glue if one of those dimensions is
pre-specified. The computed sizes normally enclose all of the material
inside the new box; but some items may stick out if negative glue is
used, if the box is overfull, or if a  box includes other boxes that
have been shifted left.
 
w: specifies a width
m: is either 'exactly' or 'additional'.
 
Thus, hpack(w, 'exactly') produces a box whose width is exactly w, while
hpack (w, 'additional') yields a box whose width is the natural width
plus w.  The default values produce a box with the natural width.
node644, node649
kern(self)
Insert Kern nodes between Chars to set kerning.  The
Chars themselves determine the amount of kerning they need
(in get_kerning), and this function just creates the linked
list in the correct way.

Methods inherited from List:
__repr__(self)
grow(self)
shrink(self)

Methods inherited from Box:
render(self, x1, y1, x2, y2)

Methods inherited from Node:
__internal_repr__(self)
get_kerning(self, next)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class AutoWidthChar(Hlist)
    A class that will create a character as close to the given width
as possible.  When using a font with multiple width versions
of some characters (such as the BaKoMa fonts), the correct glyph will
be selected, otherwise this will always just return a scaled version
of the glyph.
 
 
Method resolution order:
AutoWidthChar
Hlist
List
Box
Node
__builtin__.object

Methods defined here:
__init__(self, c, width, state, always=False, char_class=<class 'matplotlib.mathtext.Char'>)

Methods inherited from Hlist:
hpack(self, w=0.0, m='additional')
The main duty of hpack is to compute the dimensions of the
resulting boxes, and to adjust the glue if one of those dimensions is
pre-specified. The computed sizes normally enclose all of the material
inside the new box; but some items may stick out if negative glue is
used, if the box is overfull, or if a  box includes other boxes that
have been shifted left.
 
w: specifies a width
m: is either 'exactly' or 'additional'.
 
Thus, hpack(w, 'exactly') produces a box whose width is exactly w, while
hpack (w, 'additional') yields a box whose width is the natural width
plus w.  The default values produce a box with the natural width.
node644, node649
kern(self)
Insert Kern nodes between Chars to set kerning.  The
Chars themselves determine the amount of kerning they need
(in get_kerning), and this function just creates the linked
list in the correct way.

Methods inherited from List:
__repr__(self)
grow(self)
shrink(self)

Methods inherited from Box:
render(self, x1, y1, x2, y2)

Methods inherited from Node:
__internal_repr__(self)
get_kerning(self, next)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class BakomaFonts(TruetypeFonts)
    Use the Bakoma true type fonts for rendering
 
 
Method resolution order:
BakomaFonts
TruetypeFonts
Fonts
__builtin__.object

Methods defined here:
__init__(self, *args, **kwargs)
get_sized_alternatives_for_symbol(self, fontname, sym)

Data and other attributes defined here:
alias = '\rightbracket'
fontmap = {}
target = ']'

Methods inherited from TruetypeFonts:
destroy(self)
get_kern(self, font1, fontclass1, sym1, fontsize1, font2, fontclass2, sym2, fontsize2, dpi)
get_underline_thickness(self, font, fontsize, dpi)
get_xheight(self, font, fontsize, dpi)

Data and other attributes inherited from TruetypeFonts:
CachedFont = <class matplotlib.mathtext.CachedFont at 0x1a61230>

Methods inherited from Fonts:
get_metrics(self, font, font_class, sym, fontsize, dpi)
font: one of the TeX font names, tt, it, rm, cal, sf, bf or
       default (non-math)
sym:  a symbol in raw TeX form. e.g. '1', 'x' or '\sigma'
fontsize: font size in points
dpi: current dots-per-inch
 
  advance
  height
  width
  xmin, xmax, ymin, ymax  - the ink rectangle of the glyph
  iceberg - the distance from the baseline to the top of the glyph.
     horiBearingY in Truetype parlance, height in TeX parlance
get_results(self, box)
get_used_characters(self)
render_glyph(self, ox, oy, facename, font_class, sym, fontsize, dpi)
render_rect_filled(self, x1, y1, x2, y2)
set_canvas_size(self, w, h, d)
Dimension the drawing canvas; may be a noop

Data descriptors inherited from Fonts:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Box(Node)
    Represents any node with a physical location.
node135
 
 
Method resolution order:
Box
Node
__builtin__.object

Methods defined here:
__init__(self, width, height, depth)
grow(self)
render(self, x1, y1, x2, y2)
shrink(self)

Methods inherited from Node:
__internal_repr__(self)
__repr__(self)
get_kerning(self, next)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Char(Node)
    Represents a single character.  Unlike TeX, the font
information and metrics are stored with each Char to make it
easier to lookup the font metrics when needed.  Note that TeX
boxes have a width, height, and depth, unlike Type1 and Truetype
which use a full bounding box and an advance in the x-direction.
The metrics must be converted to the TeX way, and the advance (if
different from width) must be converted into a Kern node when the
Char is added to its parent Hlist.
node134
 
 
Method resolution order:
Char
Node
__builtin__.object

Methods defined here:
__init__(self, c, state)
__internal_repr__(self)
get_kerning(self, next)
Return the amount of kerning between this and the given
character.  Called when characters are strung together into
Hlists to create Kern nodes.
grow(self)
is_slanted(self)
render(self, x, y)
Render the character to the canvas
shrink(self)

Methods inherited from Node:
__repr__(self)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Fil(Glue)
    
Method resolution order:
Fil
Glue
Node
__builtin__.object

Methods defined here:
__init__(self)

Methods inherited from Glue:
grow(self)
shrink(self)

Methods inherited from Node:
__internal_repr__(self)
__repr__(self)
get_kerning(self, next)
render(self, x, y)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Fill(Glue)
    
Method resolution order:
Fill
Glue
Node
__builtin__.object

Methods defined here:
__init__(self)

Methods inherited from Glue:
grow(self)
shrink(self)

Methods inherited from Node:
__internal_repr__(self)
__repr__(self)
get_kerning(self, next)
render(self, x, y)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Filll(Glue)
    
Method resolution order:
Filll
Glue
Node
__builtin__.object

Methods defined here:
__init__(self)

Methods inherited from Glue:
grow(self)
shrink(self)

Methods inherited from Node:
__internal_repr__(self)
__repr__(self)
get_kerning(self, next)
render(self, x, y)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Fonts(__builtin__.object)
    An abstract base class for fonts that want to render mathtext
 
The class must be able to take symbol keys and font file names and
return the character metrics.  It also delegates to a backend class
to do the actual drawing.
 
  Methods defined here:
__init__(self, default_font_prop, mathtext_backend)
default_font_prop: A FontProperties object to use for the
default non-math font, or the base font for Unicode font
rendering.
mathtext_backend: A subclass of MathTextBackend used to
delegate the actual rendering.
destroy(self)
Fix any cyclical references before the object is about
to be destroyed.
get_kern(self, font1, fontclass1, sym1, fontsize1, font2, fontclass2, sym2, fontsize2, dpi)
Get the kerning distance for font between sym1 and sym2.
 
fontX: one of the TeX font names, tt, it, rm, cal, sf, bf or
       default (non-math)
symX:  a symbol in raw TeX form. e.g. '1', 'x' or '\sigma'
fontsizeX: the fontsize in points
dpi: the current dots-per-inch
 
sym is a single symbol(alphanum, punct) or a special symbol
like \sigma.
get_metrics(self, font, font_class, sym, fontsize, dpi)
font: one of the TeX font names, tt, it, rm, cal, sf, bf or
       default (non-math)
sym:  a symbol in raw TeX form. e.g. '1', 'x' or '\sigma'
fontsize: font size in points
dpi: current dots-per-inch
 
  advance
  height
  width
  xmin, xmax, ymin, ymax  - the ink rectangle of the glyph
  iceberg - the distance from the baseline to the top of the glyph.
     horiBearingY in Truetype parlance, height in TeX parlance
get_results(self, box)
get_sized_alternatives_for_symbol(self, fontname, sym)
Override if your font provides multiple sizes of the same
symbol.
get_underline_thickness(self, font, fontsize, dpi)
get_used_characters(self)
get_xheight(self, font, fontsize, dpi)
render_glyph(self, ox, oy, facename, font_class, sym, fontsize, dpi)
render_rect_filled(self, x1, y1, x2, y2)
set_canvas_size(self, w, h, d)
Dimension the drawing canvas; may be a noop

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Glue(Node)
    Most of the information in this object is stored in the underlying
GlueSpec class, which is shared between multiple glue objects.  (This
is a memory optimization which probably doesn't matter anymore, but it's
easier to stick to what TeX does.)
node149, node152
 
 
Method resolution order:
Glue
Node
__builtin__.object

Methods defined here:
__init__(self, glue_type, copy=False)
grow(self)
shrink(self)

Methods inherited from Node:
__internal_repr__(self)
__repr__(self)
get_kerning(self, next)
render(self, x, y)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class GlueSpec(__builtin__.object)
    node150, node151
 
  Methods defined here:
__init__(self, width=0.0, stretch=0.0, stretch_order=0, shrink=0.0, shrink_order=0)
copy(self)

Class methods defined here:
factory(cls, glue_type) from __builtin__.type

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class HCentered(Hlist)
    A convenience class to create an Hlist whose contents are centered
within its enclosing box.
 
 
Method resolution order:
HCentered
Hlist
List
Box
Node
__builtin__.object

Methods defined here:
__init__(self, elements)

Methods inherited from Hlist:
hpack(self, w=0.0, m='additional')
The main duty of hpack is to compute the dimensions of the
resulting boxes, and to adjust the glue if one of those dimensions is
pre-specified. The computed sizes normally enclose all of the material
inside the new box; but some items may stick out if negative glue is
used, if the box is overfull, or if a  box includes other boxes that
have been shifted left.
 
w: specifies a width
m: is either 'exactly' or 'additional'.
 
Thus, hpack(w, 'exactly') produces a box whose width is exactly w, while
hpack (w, 'additional') yields a box whose width is the natural width
plus w.  The default values produce a box with the natural width.
node644, node649
kern(self)
Insert Kern nodes between Chars to set kerning.  The
Chars themselves determine the amount of kerning they need
(in get_kerning), and this function just creates the linked
list in the correct way.

Methods inherited from List:
__repr__(self)
grow(self)
shrink(self)

Methods inherited from Box:
render(self, x1, y1, x2, y2)

Methods inherited from Node:
__internal_repr__(self)
get_kerning(self, next)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Hbox(Box)
    A box with only width (zero height and depth).
 
 
Method resolution order:
Hbox
Box
Node
__builtin__.object

Methods defined here:
__init__(self, width)

Methods inherited from Box:
grow(self)
render(self, x1, y1, x2, y2)
shrink(self)

Methods inherited from Node:
__internal_repr__(self)
__repr__(self)
get_kerning(self, next)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Hlist(List)
    A horizontal list of boxes.
node135
 
 
Method resolution order:
Hlist
List
Box
Node
__builtin__.object

Methods defined here:
__init__(self, elements, w=0.0, m='additional', do_kern=True)
hpack(self, w=0.0, m='additional')
The main duty of hpack is to compute the dimensions of the
resulting boxes, and to adjust the glue if one of those dimensions is
pre-specified. The computed sizes normally enclose all of the material
inside the new box; but some items may stick out if negative glue is
used, if the box is overfull, or if a  box includes other boxes that
have been shifted left.
 
w: specifies a width
m: is either 'exactly' or 'additional'.
 
Thus, hpack(w, 'exactly') produces a box whose width is exactly w, while
hpack (w, 'additional') yields a box whose width is the natural width
plus w.  The default values produce a box with the natural width.
node644, node649
kern(self)
Insert Kern nodes between Chars to set kerning.  The
Chars themselves determine the amount of kerning they need
(in get_kerning), and this function just creates the linked
list in the correct way.

Methods inherited from List:
__repr__(self)
grow(self)
shrink(self)

Methods inherited from Box:
render(self, x1, y1, x2, y2)

Methods inherited from Node:
__internal_repr__(self)
get_kerning(self, next)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Hrule(Rule)
    Convenience class to create a horizontal rule.
 
 
Method resolution order:
Hrule
Rule
Box
Node
__builtin__.object

Methods defined here:
__init__(self, state)

Methods inherited from Rule:
render(self, x, y, w, h)

Methods inherited from Box:
grow(self)
shrink(self)

Methods inherited from Node:
__internal_repr__(self)
__repr__(self)
get_kerning(self, next)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Kern(Node)
    Kern node has a width field to specify a (normally negative)
amount of spacing. This spacing correction appears in horizontal lists
between letters like A and V when the font designer said that it looks
better to move them closer together or further apart. A kern node can
also appear in a vertical list, when its 'width' denotes additional
spacing in the vertical direction.
node155
 
 
Method resolution order:
Kern
Node
__builtin__.object

Methods defined here:
__init__(self, width)
__repr__(self)
grow(self)
shrink(self)

Methods inherited from Node:
__internal_repr__(self)
get_kerning(self, next)
render(self, x, y)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class List(Box)
    A list of nodes (either horizontal or vertical).
node135
 
 
Method resolution order:
List
Box
Node
__builtin__.object

Methods defined here:
__init__(self, elements)
__repr__(self)
grow(self)
shrink(self)

Methods inherited from Box:
render(self, x1, y1, x2, y2)

Methods inherited from Node:
__internal_repr__(self)
get_kerning(self, next)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class MathTextParser(__builtin__.object)
    Parse the math expression s, return the (bbox, fonts) tuple needed
to render it.
 
fontsize must be in points
 
return is width, height, fonts
 
  Methods defined here:
__init__(self, output)
get_depth(self, texstr, dpi=120, fontsize=14)
Returns the offset of the baseline from the bottom of the
image in pixels.
 
''texstr''
    A valid mathtext string, eg r'IQ: $\sigma_i=15$'
 
''dpi''
    The dots-per-inch to render the text
 
''fontsize''
    The font size in points
parse(self, s, dpi=72, prop=None)
to_mask(self, texstr, dpi=120, fontsize=14)
Returns a tuple (*array*, *depth*)
 
  - *array* is an NxM uint8 alpha ubyte mask array of
    rasterized tex.
 
  - depth is the offset of the baseline from the bottom of the
    image in pixels.
 
''texstr''
    A valid mathtext string, eg r'IQ: $\sigma_i=15$'
 
''dpi''
    The dots-per-inch to render the text
 
''fontsize''
    The font size in points
to_png(self, filename, texstr, color='black', dpi=120, fontsize=14)
Writes a tex expression to a PNG file.
 
Returns the offset of the baseline from the bottom of the
image in pixels.
 
''filename''
    A writable filename or fileobject
 
''texstr''
    A valid mathtext string, eg r'IQ: $\sigma_i=15$'
 
''color''
    A valid matplotlib color argument
 
''dpi''
    The dots-per-inch to render the text
 
''fontsize''
    The font size in points
to_rgba(self, texstr, color='black', dpi=120, fontsize=14)
Returns a tuple (*array*, *depth*)
 
  - *array* is an NxMx4 RGBA array of ubyte rasterized tex.
 
  - depth is the offset of the baseline from the bottom of the
    image in pixels.
 
Returns a tuple (array, depth), where depth is the offset of
the baseline from the bottom of the image.
 
''texstr''
    A valid mathtext string, eg r'IQ: $\sigma_i=15$'
 
''color''
    A valid matplotlib color argument
 
''dpi''
    The dots-per-inch to render the text
 
''fontsize''
    The font size in points

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class MathTextWarning(exceptions.Warning)
    
Method resolution order:
MathTextWarning
exceptions.Warning
exceptions.Exception
exceptions.BaseException
__builtin__.object

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from exceptions.Warning:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Data and other attributes inherited from exceptions.Warning:
__new__ = <built-in method __new__ of type object at 0x3f8ab35640>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message
exception message

 
class MathtextBackend(__builtin__.object)
     Methods defined here:
__init__(self)
get_hinting_type(self)
get_results(self, box)
Return a backend specific tuple of things to return to the
backend after all processing is done.
render_filled_rect(self, x1, y1, x2, y2)
render_glyph(self, ox, oy, info)
set_canvas_size(self, w, h, d)
Dimension the drawing canvas; may be a noop

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class MathtextBackendAggRender(MathtextBackend)
    
Method resolution order:
MathtextBackendAggRender
MathtextBackend
__builtin__.object

Methods defined here:
__init__(self)
get_hinting_type(self)
get_results(self, box)
render_glyph(self, ox, oy, info)
render_rect_filled(self, x1, y1, x2, y2)
set_canvas_size(self, w, h, d)

Methods inherited from MathtextBackend:
render_filled_rect(self, x1, y1, x2, y2)

Data descriptors inherited from MathtextBackend:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class MathtextBackendBbox(MathtextBackend)
    A backend whose only purpose is to get a precise bounding box.
Only required for the Agg backend.
 
 
Method resolution order:
MathtextBackendBbox
MathtextBackend
__builtin__.object

Methods defined here:
__init__(self, real_backend)
get_hinting_type(self)
get_results(self, box)
render_glyph(self, ox, oy, info)
render_rect_filled(self, x1, y1, x2, y2)

Methods inherited from MathtextBackend:
render_filled_rect(self, x1, y1, x2, y2)
set_canvas_size(self, w, h, d)
Dimension the drawing canvas; may be a noop

Data descriptors inherited from MathtextBackend:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class MathtextBackendBitmapRender(MathtextBackendAggRender)
    
Method resolution order:
MathtextBackendBitmapRender
MathtextBackendAggRender
MathtextBackend
__builtin__.object

Methods defined here:
get_results(self, box)

Methods inherited from MathtextBackendAggRender:
__init__(self)
get_hinting_type(self)
render_glyph(self, ox, oy, info)
render_rect_filled(self, x1, y1, x2, y2)
set_canvas_size(self, w, h, d)

Methods inherited from MathtextBackend:
render_filled_rect(self, x1, y1, x2, y2)

Data descriptors inherited from MathtextBackend:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class MathtextBackendCairo(MathtextBackend)
    
Method resolution order:
MathtextBackendCairo
MathtextBackend
__builtin__.object

Methods defined here:
__init__(self)
get_results(self, box)
render_glyph(self, ox, oy, info)
render_rect_filled(self, x1, y1, x2, y2)

Methods inherited from MathtextBackend:
get_hinting_type(self)
render_filled_rect(self, x1, y1, x2, y2)
set_canvas_size(self, w, h, d)
Dimension the drawing canvas; may be a noop

Data descriptors inherited from MathtextBackend:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class MathtextBackendPdf(MathtextBackend)
    
Method resolution order:
MathtextBackendPdf
MathtextBackend
__builtin__.object

Methods defined here:
__init__(self)
get_results(self, box)
render_glyph(self, ox, oy, info)
render_rect_filled(self, x1, y1, x2, y2)

Methods inherited from MathtextBackend:
get_hinting_type(self)
render_filled_rect(self, x1, y1, x2, y2)
set_canvas_size(self, w, h, d)
Dimension the drawing canvas; may be a noop

Data descriptors inherited from MathtextBackend:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class MathtextBackendPs(MathtextBackend)
    
Method resolution order:
MathtextBackendPs
MathtextBackend
__builtin__.object

Methods defined here:
__init__(self)
get_results(self, box)
render_glyph(self, ox, oy, info)
render_rect_filled(self, x1, y1, x2, y2)

Methods inherited from MathtextBackend:
get_hinting_type(self)
render_filled_rect(self, x1, y1, x2, y2)
set_canvas_size(self, w, h, d)
Dimension the drawing canvas; may be a noop

Data descriptors inherited from MathtextBackend:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class MathtextBackendSvg(MathtextBackend)
    
Method resolution order:
MathtextBackendSvg
MathtextBackend
__builtin__.object

Methods defined here:
__init__(self)
get_results(self, box)
render_glyph(self, ox, oy, info)
render_rect_filled(self, x1, y1, x2, y2)

Methods inherited from MathtextBackend:
get_hinting_type(self)
render_filled_rect(self, x1, y1, x2, y2)
set_canvas_size(self, w, h, d)
Dimension the drawing canvas; may be a noop

Data descriptors inherited from MathtextBackend:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class NegFil(Glue)
    
Method resolution order:
NegFil
Glue
Node
__builtin__.object

Methods defined here:
__init__(self)

Methods inherited from Glue:
grow(self)
shrink(self)

Methods inherited from Node:
__internal_repr__(self)
__repr__(self)
get_kerning(self, next)
render(self, x, y)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class NegFill(Glue)
    
Method resolution order:
NegFill
Glue
Node
__builtin__.object

Methods defined here:
__init__(self)

Methods inherited from Glue:
grow(self)
shrink(self)

Methods inherited from Node:
__internal_repr__(self)
__repr__(self)
get_kerning(self, next)
render(self, x, y)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class NegFilll(Glue)
    
Method resolution order:
NegFilll
Glue
Node
__builtin__.object

Methods defined here:
__init__(self)

Methods inherited from Glue:
grow(self)
shrink(self)

Methods inherited from Node:
__internal_repr__(self)
__repr__(self)
get_kerning(self, next)
render(self, x, y)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Node(__builtin__.object)
    A node in the TeX box model
node133
 
  Methods defined here:
__init__(self)
__internal_repr__(self)
__repr__(self)
get_kerning(self, next)
grow(self)
Grows one level larger.  There is no limit to how big something
can get.
render(self, x, y)
shrink(self)
Shrinks one level smaller.  There are only three levels of sizes,
after which things will no longer get smaller.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Parser(__builtin__.object)
     Methods defined here:
__init__(self)
accent(self, s, loc, toks)
auto_sized_delimiter(self, s, loc, toks)
char_over_chars(self, s, loc, toks)
clear(self)
customspace(self, s, loc, toks)
end_group(self, s, loc, toks)
finish(self, s, loc, toks)
font(self, s, loc, toks)
frac(self, s, loc, toks)
function(self, s, loc, toks)
get_state(self)
group(self, s, loc, toks)
is_dropsub(self, nucleus)
is_overunder(self, nucleus)
is_slanted(self, nucleus)
math(self, s, loc, toks)
non_math(self, s, loc, toks)
parse(self, s, fonts_object, fontsize, dpi)
pop_state(self)
push_state(self)
space(self, s, loc, toks)
sqrt(self, s, loc, toks)
start_group(self, s, loc, toks)
subsuperscript(self, s, loc, toks)
symbol(self, s, loc, toks)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
State = <class 'matplotlib.mathtext.State'>

 
class Rule(Box)
    Rule node stands for a solid black rectangle; it has width,
depth, and height fields just as in an Hlist. However, if any of these
dimensions is inf, the actual value will be determined by running the
rule up to the boundary of the innermost enclosing box. This is called
a "running dimension." The width is never running in an Hlist; the
height and depth are never running in a Vlist.
node138
 
 
Method resolution order:
Rule
Box
Node
__builtin__.object

Methods defined here:
__init__(self, width, height, depth, state)
render(self, x, y, w, h)

Methods inherited from Box:
grow(self)
shrink(self)

Methods inherited from Node:
__internal_repr__(self)
__repr__(self)
get_kerning(self, next)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Ship(__builtin__.object)
    Once the boxes have been set up, this sends them to output.
Since boxes can be inside of boxes inside of boxes, the main
work of Ship is done by two mutually recursive routines, hlist_out
and vlist_out , which traverse the Hlists and Vlists inside of
horizontal and vertical boxes.  The global variables used in TeX to
store state as it processes have become member variables here.
node592.
 
  Methods defined here:
__call__(self, ox, oy, box)
hlist_out(self, box)
vlist_out(self, box)

Static methods defined here:
clamp(value)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class SsGlue(Glue)
    
Method resolution order:
SsGlue
Glue
Node
__builtin__.object

Methods defined here:
__init__(self)

Methods inherited from Glue:
grow(self)
shrink(self)

Methods inherited from Node:
__internal_repr__(self)
__repr__(self)
get_kerning(self, next)
render(self, x, y)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class StandardPsFonts(Fonts)
    Use the standard postscript fonts for rendering to backend_ps
 
Unlike the other font classes, BakomaFont and UnicodeFont, this
one requires the Ps backend.
 
 
Method resolution order:
StandardPsFonts
Fonts
__builtin__.object

Methods defined here:
__init__(self, default_font_prop)
get_kern(self, font1, fontclass1, sym1, fontsize1, font2, fontclass2, sym2, fontsize2, dpi)
get_underline_thickness(self, font, fontsize, dpi)
get_xheight(self, font, fontsize, dpi)

Data and other attributes defined here:
basepath = '/home/jdhunter/dev/lib64/python2.5/site-packages/matplotlib/mpl-data/fonts/afm'
fontmap = {None: 'psyr', 'bf': 'pncb8a', 'cal': 'pzcmi8a', 'it': 'pncri8a', 'rm': 'pncr8a', 'sf': 'phvr8a', 'tt': 'pcrr8a'}

Methods inherited from Fonts:
destroy(self)
Fix any cyclical references before the object is about
to be destroyed.
get_metrics(self, font, font_class, sym, fontsize, dpi)
font: one of the TeX font names, tt, it, rm, cal, sf, bf or
       default (non-math)
sym:  a symbol in raw TeX form. e.g. '1', 'x' or '\sigma'
fontsize: font size in points
dpi: current dots-per-inch
 
  advance
  height
  width
  xmin, xmax, ymin, ymax  - the ink rectangle of the glyph
  iceberg - the distance from the baseline to the top of the glyph.
     horiBearingY in Truetype parlance, height in TeX parlance
get_results(self, box)
get_sized_alternatives_for_symbol(self, fontname, sym)
Override if your font provides multiple sizes of the same
symbol.
get_used_characters(self)
render_glyph(self, ox, oy, facename, font_class, sym, fontsize, dpi)
render_rect_filled(self, x1, y1, x2, y2)
set_canvas_size(self, w, h, d)
Dimension the drawing canvas; may be a noop

Data descriptors inherited from Fonts:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class StixFonts(UnicodeFonts)
    A font handling class for the STIX fonts
 
 
Method resolution order:
StixFonts
UnicodeFonts
TruetypeFonts
Fonts
__builtin__.object

Methods defined here:
__init__(self, *args, **kwargs)
get_sized_alternatives_for_symbol(self, fontname, sym)

Data and other attributes defined here:
cm_fallback = False
fontmap = {}
use_cmex = False

Methods inherited from TruetypeFonts:
destroy(self)
get_kern(self, font1, fontclass1, sym1, fontsize1, font2, fontclass2, sym2, fontsize2, dpi)
get_underline_thickness(self, font, fontsize, dpi)
get_xheight(self, font, fontsize, dpi)

Data and other attributes inherited from TruetypeFonts:
CachedFont = <class matplotlib.mathtext.CachedFont at 0x1a61230>

Methods inherited from Fonts:
get_metrics(self, font, font_class, sym, fontsize, dpi)
font: one of the TeX font names, tt, it, rm, cal, sf, bf or
       default (non-math)
sym:  a symbol in raw TeX form. e.g. '1', 'x' or '\sigma'
fontsize: font size in points
dpi: current dots-per-inch
 
  advance
  height
  width
  xmin, xmax, ymin, ymax  - the ink rectangle of the glyph
  iceberg - the distance from the baseline to the top of the glyph.
     horiBearingY in Truetype parlance, height in TeX parlance
get_results(self, box)
get_used_characters(self)
render_glyph(self, ox, oy, facename, font_class, sym, fontsize, dpi)
render_rect_filled(self, x1, y1, x2, y2)
set_canvas_size(self, w, h, d)
Dimension the drawing canvas; may be a noop

Data descriptors inherited from Fonts:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class StixSansFonts(StixFonts)
    A font handling class for the STIX fonts (using sans-serif
characters by default).
 
 
Method resolution order:
StixSansFonts
StixFonts
UnicodeFonts
TruetypeFonts
Fonts
__builtin__.object

Methods inherited from StixFonts:
__init__(self, *args, **kwargs)
get_sized_alternatives_for_symbol(self, fontname, sym)

Data and other attributes inherited from StixFonts:
cm_fallback = False
fontmap = {}
use_cmex = False

Methods inherited from TruetypeFonts:
destroy(self)
get_kern(self, font1, fontclass1, sym1, fontsize1, font2, fontclass2, sym2, fontsize2, dpi)
get_underline_thickness(self, font, fontsize, dpi)
get_xheight(self, font, fontsize, dpi)

Data and other attributes inherited from TruetypeFonts:
CachedFont = <class matplotlib.mathtext.CachedFont at 0x1a61230>

Methods inherited from Fonts:
get_metrics(self, font, font_class, sym, fontsize, dpi)
font: one of the TeX font names, tt, it, rm, cal, sf, bf or
       default (non-math)
sym:  a symbol in raw TeX form. e.g. '1', 'x' or '\sigma'
fontsize: font size in points
dpi: current dots-per-inch
 
  advance
  height
  width
  xmin, xmax, ymin, ymax  - the ink rectangle of the glyph
  iceberg - the distance from the baseline to the top of the glyph.
     horiBearingY in Truetype parlance, height in TeX parlance
get_results(self, box)
get_used_characters(self)
render_glyph(self, ox, oy, facename, font_class, sym, fontsize, dpi)
render_rect_filled(self, x1, y1, x2, y2)
set_canvas_size(self, w, h, d)
Dimension the drawing canvas; may be a noop

Data descriptors inherited from Fonts:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class SubSuperCluster(Hlist)
    This class is a sort of hack to get around that fact that this
code doesn't parse to an mlist and then an hlist, but goes directly
to hlists.  This lets us store enough information in the hlist itself,
namely the nucleas, sub- and super-script, such that if another script
follows that needs to be attached, it can be reconfigured on the fly.
 
 
Method resolution order:
SubSuperCluster
Hlist
List
Box
Node
__builtin__.object

Methods defined here:
__init__(self)

Methods inherited from Hlist:
hpack(self, w=0.0, m='additional')
The main duty of hpack is to compute the dimensions of the
resulting boxes, and to adjust the glue if one of those dimensions is
pre-specified. The computed sizes normally enclose all of the material
inside the new box; but some items may stick out if negative glue is
used, if the box is overfull, or if a  box includes other boxes that
have been shifted left.
 
w: specifies a width
m: is either 'exactly' or 'additional'.
 
Thus, hpack(w, 'exactly') produces a box whose width is exactly w, while
hpack (w, 'additional') yields a box whose width is the natural width
plus w.  The default values produce a box with the natural width.
node644, node649
kern(self)
Insert Kern nodes between Chars to set kerning.  The
Chars themselves determine the amount of kerning they need
(in get_kerning), and this function just creates the linked
list in the correct way.

Methods inherited from List:
__repr__(self)
grow(self)
shrink(self)

Methods inherited from Box:
render(self, x1, y1, x2, y2)

Methods inherited from Node:
__internal_repr__(self)
get_kerning(self, next)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class TruetypeFonts(Fonts)
    A generic base class for all font setups that use Truetype fonts
(through ft2font)
 
 
Method resolution order:
TruetypeFonts
Fonts
__builtin__.object

Methods defined here:
__init__(self, default_font_prop, mathtext_backend)
destroy(self)
get_kern(self, font1, fontclass1, sym1, fontsize1, font2, fontclass2, sym2, fontsize2, dpi)
get_underline_thickness(self, font, fontsize, dpi)
get_xheight(self, font, fontsize, dpi)

Data and other attributes defined here:
CachedFont = <class matplotlib.mathtext.CachedFont at 0x1a61230>

Methods inherited from Fonts:
get_metrics(self, font, font_class, sym, fontsize, dpi)
font: one of the TeX font names, tt, it, rm, cal, sf, bf or
       default (non-math)
sym:  a symbol in raw TeX form. e.g. '1', 'x' or '\sigma'
fontsize: font size in points
dpi: current dots-per-inch
 
  advance
  height
  width
  xmin, xmax, ymin, ymax  - the ink rectangle of the glyph
  iceberg - the distance from the baseline to the top of the glyph.
     horiBearingY in Truetype parlance, height in TeX parlance
get_results(self, box)
get_sized_alternatives_for_symbol(self, fontname, sym)
Override if your font provides multiple sizes of the same
symbol.
get_used_characters(self)
render_glyph(self, ox, oy, facename, font_class, sym, fontsize, dpi)
render_rect_filled(self, x1, y1, x2, y2)
set_canvas_size(self, w, h, d)
Dimension the drawing canvas; may be a noop

Data descriptors inherited from Fonts:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class UnicodeFonts(TruetypeFonts)
    An abstract base class for handling Unicode fonts.
 
 
Method resolution order:
UnicodeFonts
TruetypeFonts
Fonts
__builtin__.object

Methods defined here:
__init__(self, *args, **kwargs)
get_sized_alternatives_for_symbol(self, fontname, sym)

Data and other attributes defined here:
fontmap = {}
use_cmex = True

Methods inherited from TruetypeFonts:
destroy(self)
get_kern(self, font1, fontclass1, sym1, fontsize1, font2, fontclass2, sym2, fontsize2, dpi)
get_underline_thickness(self, font, fontsize, dpi)
get_xheight(self, font, fontsize, dpi)

Data and other attributes inherited from TruetypeFonts:
CachedFont = <class matplotlib.mathtext.CachedFont at 0x1a61230>

Methods inherited from Fonts:
get_metrics(self, font, font_class, sym, fontsize, dpi)
font: one of the TeX font names, tt, it, rm, cal, sf, bf or
       default (non-math)
sym:  a symbol in raw TeX form. e.g. '1', 'x' or '\sigma'
fontsize: font size in points
dpi: current dots-per-inch
 
  advance
  height
  width
  xmin, xmax, ymin, ymax  - the ink rectangle of the glyph
  iceberg - the distance from the baseline to the top of the glyph.
     horiBearingY in Truetype parlance, height in TeX parlance
get_results(self, box)
get_used_characters(self)
render_glyph(self, ox, oy, facename, font_class, sym, fontsize, dpi)
render_rect_filled(self, x1, y1, x2, y2)
set_canvas_size(self, w, h, d)
Dimension the drawing canvas; may be a noop

Data descriptors inherited from Fonts:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class VCentered(Hlist)
    A convenience class to create an Vlist whose contents are centered
within its enclosing box.
 
 
Method resolution order:
VCentered
Hlist
List
Box
Node
__builtin__.object

Methods defined here:
__init__(self, elements)

Methods inherited from Hlist:
hpack(self, w=0.0, m='additional')
The main duty of hpack is to compute the dimensions of the
resulting boxes, and to adjust the glue if one of those dimensions is
pre-specified. The computed sizes normally enclose all of the material
inside the new box; but some items may stick out if negative glue is
used, if the box is overfull, or if a  box includes other boxes that
have been shifted left.
 
w: specifies a width
m: is either 'exactly' or 'additional'.
 
Thus, hpack(w, 'exactly') produces a box whose width is exactly w, while
hpack (w, 'additional') yields a box whose width is the natural width
plus w.  The default values produce a box with the natural width.
node644, node649
kern(self)
Insert Kern nodes between Chars to set kerning.  The
Chars themselves determine the amount of kerning they need
(in get_kerning), and this function just creates the linked
list in the correct way.

Methods inherited from List:
__repr__(self)
grow(self)
shrink(self)

Methods inherited from Box:
render(self, x1, y1, x2, y2)

Methods inherited from Node:
__internal_repr__(self)
get_kerning(self, next)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Vbox(Box)
    A box with only height (zero width).
 
 
Method resolution order:
Vbox
Box
Node
__builtin__.object

Methods defined here:
__init__(self, height, depth)

Methods inherited from Box:
grow(self)
render(self, x1, y1, x2, y2)
shrink(self)

Methods inherited from Node:
__internal_repr__(self)
__repr__(self)
get_kerning(self, next)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Vlist(List)
    A vertical list of boxes.
node137
 
 
Method resolution order:
Vlist
List
Box
Node
__builtin__.object

Methods defined here:
__init__(self, elements, h=0.0, m='additional')
vpack(self, h=0.0, m='additional', l=inf)
The main duty of vpack is to compute the dimensions of the
resulting boxes, and to adjust the glue if one of those dimensions is
pre-specified.
 
h: specifies a height
m: is either 'exactly' or 'additional'.
l: a maximum height
 
Thus, vpack(h, 'exactly') produces a box whose width is exactly w, while
vpack(w, 'additional') yields a box whose width is the natural width
plus w.  The default values produce a box with the natural width.
node644, node668

Methods inherited from List:
__repr__(self)
grow(self)
shrink(self)

Methods inherited from Box:
render(self, x1, y1, x2, y2)

Methods inherited from Node:
__internal_repr__(self)
get_kerning(self, next)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Vrule(Rule)
    Convenience class to create a vertical rule.
 
 
Method resolution order:
Vrule
Rule
Box
Node
__builtin__.object

Methods defined here:
__init__(self, state)

Methods inherited from Rule:
render(self, x, y, w, h)

Methods inherited from Box:
grow(self)
shrink(self)

Methods inherited from Node:
__internal_repr__(self)
__repr__(self)
get_kerning(self, next)

Data descriptors inherited from Node:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Functions
       
Error(msg)
FT2Font(...)
FT2Font
FT2Image(...)
FT2Image
MathtextBackendAgg()
MathtextBackendBitmap()
StringIO(...)
StringIO([s]) -- Return a StringIO-like stream for reading or writing
ceil(...)
ceil(x)
 
Return the ceiling of x as a float.
This is the smallest integral value >= x.
get_unicode_index(symbol)
get_unicode_index(symbol) -> integer
 
Return the integer index (from the Unicode table) of symbol.
symbol can be a single unicode character, a TeX command (i.e. r'\pi'),
or a Type1 symbol name (i.e. 'phi').

 
Data
        DELTA = 0.17999999999999999
GROW_FACTOR = 1.4285714285714286
KERNING_DEFAULT = 0
LOAD_FORCE_AUTOHINT = 32L
LOAD_NO_HINTING = 2L
NUM_SIZE_LEVELS = 4
SCRIPT_SPACE = 0.20000000000000001
SHRINK_FACTOR = 0.69999999999999996
SUB1 = 0.0
SUBDROP = 0.29999999999999999
SUP1 = 0.5
division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)
get_realpath_and_stat = <matplotlib.cbook.GetRealpathAndStat instance at 0x1925098>
inf = inf
isinf = <ufunc 'isinf'>
latex_to_bakoma = {'%': ('cmr10', 48), "'": ('cmsy10', 73), '(': ('cmr10', 119), ')': ('cmr10', 68), '*': ('cmsy10', 9), '+': ('cmr10', 76), ',': ('cmmi10', 44), '-': ('cmsy10', 17), '.': ('cmmi10', 51), '/': ('cmmi10', 98), ...}
latex_to_cmex = {r'\__sqrt__': 112, r'\bigcap': 92, r'\bigcup': 91, r'\bigodot': 75, r'\bigoplus': 77, r'\bigotimes': 79, r'\biguplus': 93, r'\bigvee': 95, r'\bigwedge': 94, r'\coprod': 97, ...}
latex_to_standard = {r'\$': ('pncr8a', 36), r'\%': ('pncr8a', 37), r'\Delta': ('psyr', 68), r'\Diamond': ('psyr', 224), r'\Downarrow': ('psyr', 223), r'\Gamma': ('psyr', 89), r'\Im': ('psyr', 193), r'\Lamda': ('psyr', 76), r'\Leftarrow': ('psyr', 220), r'\Leftrightarrow': ('psyr', 219), ...}
rcParams = {'figure.subplot.right': 0.90000000000000002, 'm...persize': 'letter', 'svg.embed_char_paths': True}
ship = <matplotlib.mathtext.Ship object at 0x1a75450>
stix_virtual_fonts = {'bb': {'bf': [(48, 57, 'rm', 120792), (65, 90, 'bf', 58250), (97, 122, 'bf', 58269), (915, 915, 'bf', 8510), (928, 928, 'bf', 8511), (931, 931, 'bf', 8512), (947, 947, 'bf', 8509), (960, 960, 'bf', 8508)], 'it': [(48, 57, 'rm', 120792), (65, 65, 'it', 57684), (67, 67, 'it', 8450), (68, 68, 'it', 8517), (69, 71, 'it', 57686), (72, 72, 'it', 8461), (73, 77, 'it', 57689), (78, 78, 'it', 8469), (79, 79, 'it', 57694), (80, 81, 'it', 8473), (82, 82, 'it', 8477), (83, 89, 'it', 57695), (90, 90, 'it', 8484), (97, 99, 'it', 57702), (100, 101, 'it', 8518), (102, 104, 'it', 57705), (105, 106, 'it', 8520), (107, 122, 'it', 57708), (915, 915, 'it', 8510), (928, 928, 'it', 8511), ...], 'rm': [(48, 57, 'rm', 120792), (65, 66, 'rm', 120120), (67, 67, 'rm', 8450), (68, 71, 'rm', 120123), (72, 72, 'rm', 8461), (73, 77, 'rm', 120128), (78, 78, 'rm', 8469), (79, 79, 'rm', 120134), (80, 81, 'rm', 8473), (82, 82, 'rm', 8477), (83, 89, 'rm', 120138), (90, 90, 'rm', 8484), (97, 122, 'rm', 120146), (915, 915, 'rm', 8510), (928, 928, 'rm', 8511), (931, 931, 'rm', 8512), (947, 947, 'rm', 8509), (960, 960, 'rm', 8508)]}, 'cal': [(65, 90, 'it', 57901)], 'circled': {'bf': [(48, 48, 'bf', 9450), (49, 57, 'bf', 9312), (65, 90, 'bf', 9398), (97, 122, 'bf', 9424)], 'it': [(48, 48, 'rm', 9450), (49, 57, 'rm', 9312), (65, 90, 'it', 9398), (97, 122, 'it', 9424)], 'rm': [(48, 48, 'rm', 9450), (49, 57, 'rm', 9312), (65, 90, 'rm', 9398), (97, 122, 'rm', 9424)]}, 'frak': {'bf': [(65, 90, 'bf', 120172), (97, 122, 'bf', 120198)], 'it': [(65, 66, 'rm', 120068), (67, 67, 'rm', 8493), (68, 71, 'rm', 120071), (72, 72, 'rm', 8460), (73, 73, 'rm', 8465), (74, 81, 'rm', 120077), (82, 82, 'rm', 8476), (83, 89, 'rm', 120086), (90, 90, 'rm', 8488), (97, 122, 'rm', 120094)], 'rm': [(65, 66, 'rm', 120068), (67, 67, 'rm', 8493), (68, 71, 'rm', 120071), (72, 72, 'rm', 8460), (73, 73, 'rm', 8465), (74, 81, 'rm', 120077), (82, 82, 'rm', 8476), (83, 89, 'rm', 120086), (90, 90, 'rm', 8488), (97, 122, 'rm', 120094)]}, 'scr': [(65, 65, 'it', 119964), (66, 66, 'it', 8492), (67, 68, 'it', 119966), (69, 70, 'it', 8496), (71, 71, 'it', 119970), (72, 72, 'it', 8459), (73, 73, 'it', 8464), (74, 75, 'it', 119973), (76, 76, 'it', 8466), (77, 61, 'it', 8467), (78, 81, 'it', 119977), (82, 82, 'it', 8475), (83, 90, 'it', 119982), (97, 100, 'it', 119990), (101, 101, 'it', 8495), (102, 102, 'it', 119995), (103, 103, 'it', 8458), (104, 110, 'it', 119997), (111, 111, 'it', 8500), (112, 122, 'it', 120005)], 'sf': {'bf': [(48, 57, 'bf', 120812), (65, 90, 'bf', 120276), (97, 122, 'bf', 120302), (913, 937, 'bf', 120662), (945, 969, 'bf', 120688), (977, 977, 'bf', 120715), (981, 981, 'bf', 120717), (982, 982, 'bf', 120719), (1008, 1008, 'bf', 120716), (1009, 1009, 'bf', 120718), (1013, 1013, 'bf', 120714), (8706, 8706, 'bf', 120713), (8711, 8711, 'bf', 120687)], 'it': [(48, 57, 'rm', 120802), (65, 90, 'it', 120328), (97, 122, 'it', 120354), (913, 937, 'rm', 57725), (945, 969, 'it', 57816), (977, 977, 'it', 57842), (981, 981, 'it', 57843), (982, 982, 'it', 57845), (1009, 1009, 'it', 57844), (1013, 1013, 'it', 57841)], 'rm': [(48, 57, 'rm', 120802), (65, 90, 'rm', 120224), (97, 122, 'rm', 120250), (913, 937, 'rm', 57725), (945, 969, 'rm', 57750), (977, 977, 'rm', 57776), (981, 981, 'rm', 57777), (982, 982, 'rm', 57779), (1009, 1009, 'rm', 57778), (1013, 1013, 'rm', 57775), (8706, 8706, 'rm', 57724)]}, 'tt': [(48, 57, 'rm', 120822), (65, 90, 'rm', 120432), (97, 122, 'rm', 120458)]}
tex2uni = {'$': 36, '%': 37, 'AA': 8491, 'AE': 198, 'BbbC': 8450, 'BbbN': 8469, 'BbbP': 8473, 'BbbQ': 8474, 'BbbR': 8477, 'BbbZ': 8484, ...}


Powered by
YAPTU!
Matlab® is a registered trademark of The MathWorks