News flash
|
The latest matplotlib-0.87.7 for windows was compiled with numpy 1.0 final. Please make sure you are
using the latest numpy-1.0 and not an earlier version or one of the rc
release candidate series. You can check your numpy version by doing
>>> import numpy
>>> print numpy.__version__
|
|
|
|
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'$\cal{R}\prod_{i=\alpha\cal{B}}^\infty a_i\rm{sin}(2 \pi f x_i)$'
The fonts \cal, \rm, \it, and \tt are allowed.
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
The $ symbols must be the first and last symbols in the string. Eg,
you cannot do
r'My label $x_i$'.
but you can change fonts, as in
r'$\rm{My label} x_i$'
to achieve the same effect.
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:
\/ \Delta \Downarrow \Gamma \Im \LEFTangle \LEFTbrace \LEFTbracket
\LEFTparen \Lambda \Leftarrow \Leftbrace \Leftbracket \Leftparen
\Leftrightarrow \Omega \P \Phi \Pi \Psi \RIGHTangle \RIGHTbrace
\RIGHTbracket \RIGHTparen \Re \Rightarrow \Rightbrace \Rightbracket
\Rightparen \S \SQRT \Sigma \Sqrt \Theta \Uparrow \Updownarrow
\Upsilon \Vert \Xi \aleph \alpha \approx \angstrom \ast \asymp
\backslash \beta \bigcap \bigcirc \bigcup \bigodot \bigoplus
\bigotimes \bigtriangledown \bigtriangleup \biguplus \bigvee
\bigwedge \bot \bullet \cap \cdot \chi \circ \clubsuit \coprod \cup
\dag \dashv \ddag \delta \diamond \diamondsuit \div \downarrow \ell
\emptyset \epsilon \equiv \eta \exists \flat \forall \frown \gamma
\geq \gg \heartsuit \hspace \imath \in \infty \int \iota \jmath
\kappa \lambda \langle \lbrace \lceil \leftangle \leftarrow
\leftbrace \leftbracket \leftharpoondown \leftharpoonup \leftparen
\leftrightarrow \leq \lfloor \ll \mid \mp \mu \nabla \natural
\nearrow \neg \ni \nu \nwarrow \odot \oint \omega \ominus \oplus
\oslash \otimes \phi \pi \pm \prec \preceq \prime \prod \propto \psi
\rangle \rbrace \rceil \rfloor \rho \rightangle \rightarrow
\rightbrace \rightbracket \rightharpoondown \rightharpoonup
\rightparen \searrow \sharp \sigma \sim \simeq \slash \smile
\spadesuit \sqcap \sqcup \sqrt \sqsubseteq \sqsupseteq \subset
\subseteq \succ \succeq \sum \supset \supseteq \swarrow \tau \theta
\times \top \triangleleft \triangleright \uparrow \updownarrow
\uplus \upsilon \varepsilon \varphi \varphi \varrho \varsigma
\vartheta \vdash \vee \vert \wedge \wp \wr \xi \zeta
BACKENDS
mathtext currently works with GTK, Agg, GTKAgg, TkAgg and WxAgg and
PS, though only horizontal and vertical rotations are supported in
*Agg
mathtext now embeds the TrueType computer modern fonts into the PS
file, so what you see on the screen should be what you get on paper.
Backends which don't support mathtext will just render the TeX
string as a literal. Stay tuned.
KNOWN ISSUES:
- nested subscripts, eg, x_i_j not working; but you can do x_{i_j}
- nesting fonts changes in sub/superscript groups not parsing
- I would also like to add a few more layout commands, like \frac.
Author : John Hunter <jdhunter@ace.bsd.uchicago.edu>
Copyright : John Hunter (2004,2005)
License : matplotlib license (PSF compatible)
Classes |
| |
- Element
-
- GroupElement
-
- ExpressionElement
- SpaceElement
- SymbolElement
- Fonts
-
- BakomaPSFonts
-
- BakomaPDFFonts
- BakomaTrueTypeFonts
- DummyFonts
- StandardPSFonts
- UnicodeFonts
-
- BakomaUnicodeFonts
- CMUUnicodeFonts
- MyUnicodeFonts
- Handler
- math_parse_s_ft2font_common
class BakomaPDFFonts(BakomaPSFonts) |
|
Hack of BakomaPSFonts for PDF support. |
|
- Method resolution order:
- BakomaPDFFonts
- BakomaPSFonts
- Fonts
Methods defined here:
- render(self, ox, oy, font, sym, fontsize, dpi)
Methods inherited from BakomaPSFonts:
- __init__(self)
- get_metrics(self, font, sym, fontsize, dpi)
- set_canvas_size(self, w, h, pswriter)
- Dimension the drawing canvas; may be a noop
Data and other attributes inherited from BakomaPSFonts:
- basepath = '/usr/lib/python2.5/site-packages/matplotlib/mpl-data'
- fnames = ('cmmi10', 'cmsy10', 'cmex10', 'cmtt10', 'cmr10')
- fontmap = {None: 'cmmi10', 'cal': 'cmsy10', 'it': 'cmmi10', 'rm': 'cmr10', 'tt': 'cmtt10'}
Methods inherited from Fonts:
- get_kern(self, facename, symleft, symright, fontsize, dpi)
- Get the kerning distance for font between symleft and symright.
facename is one of tt, it, rm, cal or None
sym is a single symbol(alphanum, punct) or a special symbol
like \sigma.
|
class BakomaPSFonts(Fonts) |
|
Use the Bakoma postscript fonts for rendering to backend_ps |
|
Methods defined here:
- __init__(self)
- get_metrics(self, font, sym, fontsize, dpi)
- render(self, ox, oy, font, sym, fontsize, dpi)
- set_canvas_size(self, w, h, pswriter)
- Dimension the drawing canvas; may be a noop
Data and other attributes defined here:
- basepath = '/usr/lib/python2.5/site-packages/matplotlib/mpl-data'
- fnames = ('cmmi10', 'cmsy10', 'cmex10', 'cmtt10', 'cmr10')
- fontmap = {None: 'cmmi10', 'cal': 'cmsy10', 'it': 'cmmi10', 'rm': 'cmr10', 'tt': 'cmtt10'}
Methods inherited from Fonts:
- get_kern(self, facename, symleft, symright, fontsize, dpi)
- Get the kerning distance for font between symleft and symright.
facename is one of tt, it, rm, cal or None
sym is a single symbol(alphanum, punct) or a special symbol
like \sigma.
|
class BakomaTrueTypeFonts(Fonts) |
|
Use the Bakoma true type fonts for rendering |
|
Methods defined here:
- __init__(self, useSVG=False)
- get_metrics(self, font, sym, fontsize, dpi)
- render(self, ox, oy, font, sym, fontsize, dpi)
- set_canvas_size(self, w, h)
- Dimension the drawing canvas; may be a noop
Data and other attributes defined here:
- basepath = '/usr/lib/python2.5/site-packages/matplotlib/mpl-data'
- fnames = ('cmmi10', 'cmsy10', 'cmex10', 'cmtt10', 'cmr10')
- fontmap = {None: 'cmmi10', 'cal': 'cmsy10', 'it': 'cmmi10', 'rm': 'cmr10', 'tt': 'cmtt10'}
Methods inherited from Fonts:
- get_kern(self, facename, symleft, symright, fontsize, dpi)
- Get the kerning distance for font between symleft and symright.
facename is one of tt, it, rm, cal or None
sym is a single symbol(alphanum, punct) or a special symbol
like \sigma.
|
class BakomaUnicodeFonts(UnicodeFonts) |
|
A class that simulates Unicode support in the BaKoMa fonts |
|
- Method resolution order:
- BakomaUnicodeFonts
- UnicodeFonts
- Fonts
Data and other attributes defined here:
- filenamesd = {None: 'cmmi10.ttf', 'cal': 'cmsy10.ttf', 'it': 'cmmi10.ttf', 'rm': 'cmr10.ttf', 'tt': 'cmtt10.ttf'}
Methods inherited from UnicodeFonts:
- __init__(self, output='Agg')
- # The path to the dir with the fontfiles
- get_metrics(self, facename, symbol, fontsize, dpi)
- render(self, ox, oy, facename, symbol, fontsize, dpi)
- set_canvas_size(self, w, h, pswriter=None)
- Dimension the drawing canvas; may be a noop
Methods inherited from Fonts:
- get_kern(self, facename, symleft, symright, fontsize, dpi)
- Get the kerning distance for font between symleft and symright.
facename is one of tt, it, rm, cal or None
sym is a single symbol(alphanum, punct) or a special symbol
like \sigma.
|
class CMUUnicodeFonts(UnicodeFonts) |
|
A class representing Computer Modern Unicode Fonts, made by
Andrey V. Panov
panov /at/ canopus. iacp. dvo. ru
They are distributed under the X11 License. |
|
- Method resolution order:
- CMUUnicodeFonts
- UnicodeFonts
- Fonts
Methods inherited from UnicodeFonts:
- __init__(self, output='Agg')
- # The path to the dir with the fontfiles
- get_metrics(self, facename, symbol, fontsize, dpi)
- render(self, ox, oy, facename, symbol, fontsize, dpi)
- set_canvas_size(self, w, h, pswriter=None)
- Dimension the drawing canvas; may be a noop
Methods inherited from Fonts:
- get_kern(self, facename, symleft, symright, fontsize, dpi)
- Get the kerning distance for font between symleft and symright.
facename is one of tt, it, rm, cal or None
sym is a single symbol(alphanum, punct) or a special symbol
like \sigma.
|
class DummyFonts(Fonts) |
|
dummy class for debugging parser |
|
Methods defined here:
- get_metrics(self, font, sym, fontsize, dpi)
Methods inherited from Fonts:
- get_kern(self, facename, symleft, symright, fontsize, dpi)
- Get the kerning distance for font between symleft and symright.
facename is one of tt, it, rm, cal or None
sym is a single symbol(alphanum, punct) or a special symbol
like \sigma.
- render(self, ox, oy, facename, sym, fontsize, dpi)
- set_canvas_size(self, w, h)
- Dimension the drawing canvas; may be a noop
|
class Element |
| |
Methods defined here:
- __init__(self)
- __repr__(self)
- advance(self)
- get the horiz advance
- centerx(self)
- centery(self)
- height(self)
- get the element height: ymax-ymin
- padx(self)
- pady(self)
- render(self)
- render to the fonts canvas
- set_font(self, font)
- set the font (one of tt, it, rm , cal)
- set_origin(self, ox, oy)
- set_padx(self, pad)
- set the y padding in points
- set_pady(self, pad)
- set the y padding in points
- set_scale(self, scale)
- scale the element by scale
- set_size_info(self, fontsize, dpi)
- width(self)
- get the element width: xmax-xmin
- xmax(self)
- get the xmax of ink rect
- xmin(self)
- get the xmin of ink rect
- ymax(self)
- get the ymax of ink rect
- ymin(self)
- get the ymin of ink rect
Data and other attributes defined here:
- dpi = 72
- font = 'it'
- fontsize = 12
|
class ExpressionElement(GroupElement) |
|
The entire mathtext expression |
|
- Method resolution order:
- ExpressionElement
- GroupElement
- Element
Methods defined here:
- __repr__(self)
Methods inherited from GroupElement:
- __init__(self, elements)
- advance(self)
- get the horiz advance
- height(self)
- get the element height: ymax-ymin
- render(self)
- render to the fonts canvas
- set_font(self, font)
- set the font (one of tt, it, rm , cal)
- set_origin(self, ox, oy)
- set_size_info(self, fontsize, dpi)
- width(self)
- get the element width: xmax-xmin
- xmax(self)
- get the max ink in x
- xmin(self)
- get the minimum ink in x
- ymax(self)
- get the max ink in y
- ymin(self)
- get the minimum ink in y
Methods inherited from Element:
- centerx(self)
- centery(self)
- padx(self)
- pady(self)
- set_padx(self, pad)
- set the y padding in points
- set_pady(self, pad)
- set the y padding in points
- set_scale(self, scale)
- scale the element by scale
Data and other attributes inherited from Element:
- dpi = 72
- font = 'it'
- fontsize = 12
|
class Fonts |
|
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 as well as do the drawing |
|
Methods defined here:
- get_kern(self, facename, symleft, symright, fontsize, dpi)
- Get the kerning distance for font between symleft and symright.
facename is one of tt, it, rm, cal or None
sym is a single symbol(alphanum, punct) or a special symbol
like \sigma.
- get_metrics(self, facename, sym, fontsize, dpi)
- facename is one of tt, it, rm, cal or None
sym is a single symbol(alphanum, punct) or a special symbol
like \sigma.
fontsize is in points
Return object has attributes - see
http://www.freetype.org/freetype2/docs/tutorial/step2.html for
a pictoral representation of these attributes
advance
height
width
xmin, xmax, ymin, ymax - the ink rectangle of the glyph
- render(self, ox, oy, facename, sym, fontsize, dpi)
- set_canvas_size(self, w, h)
- Dimension the drawing canvas; may be a noop
|
class GroupElement(Element) |
|
A group is a collection of elements |
|
Methods defined here:
- __init__(self, elements)
- __repr__(self)
- advance(self)
- get the horiz advance
- height(self)
- get the element height: ymax-ymin
- render(self)
- render to the fonts canvas
- set_font(self, font)
- set the font (one of tt, it, rm , cal)
- set_origin(self, ox, oy)
- set_size_info(self, fontsize, dpi)
- width(self)
- get the element width: xmax-xmin
- xmax(self)
- get the max ink in x
- xmin(self)
- get the minimum ink in x
- ymax(self)
- get the max ink in y
- ymin(self)
- get the minimum ink in y
Methods inherited from Element:
- centerx(self)
- centery(self)
- padx(self)
- pady(self)
- set_padx(self, pad)
- set the y padding in points
- set_pady(self, pad)
- set the y padding in points
- set_scale(self, scale)
- scale the element by scale
Data and other attributes inherited from Element:
- dpi = 72
- font = 'it'
- fontsize = 12
|
class Handler |
| |
Methods defined here:
- accent(self, s, loc, toks)
- clear(self)
- composite(self, s, loc, toks)
- expression(self, s, loc, toks)
- font(self, s, loc, toks)
- group(self, s, loc, toks)
- is_overunder(self, prev)
- space(self, s, loc, toks)
- subscript(self, s, loc, toks)
- subsuperscript(self, s, loc, toks)
- superscript(self, s, loc, toks)
- symbol(self, s, loc, toks)
Data and other attributes defined here:
- symbols = []
|
class MyUnicodeFonts(UnicodeFonts) |
| |
- Method resolution order:
- MyUnicodeFonts
- UnicodeFonts
- Fonts
Methods defined here:
- __init__(self)
Methods inherited from UnicodeFonts:
- get_metrics(self, facename, symbol, fontsize, dpi)
- render(self, ox, oy, facename, symbol, fontsize, dpi)
- set_canvas_size(self, w, h, pswriter=None)
- Dimension the drawing canvas; may be a noop
Methods inherited from Fonts:
- get_kern(self, facename, symleft, symright, fontsize, dpi)
- Get the kerning distance for font between symleft and symright.
facename is one of tt, it, rm, cal or None
sym is a single symbol(alphanum, punct) or a special symbol
like \sigma.
|
class SpaceElement(Element) |
|
blank horizontal space |
|
Methods defined here:
- __init__(self, space, height=0)
- space is the amount of blank space in fraction of fontsize
height is the height of the space in fraction of fontsize
- advance(self)
- get the horiz advance
- height(self)
- get the element height: ymax-ymin
- set_font(self, f)
- width(self)
- get the element width: xmax-xmin
- xmax(self)
- get the max ink in x
- xmin(self)
- get the minimum ink in x
- ymax(self)
- get the max ink in y
- ymin(self)
- get the minimum ink in y
Methods inherited from Element:
- __repr__(self)
- centerx(self)
- centery(self)
- padx(self)
- pady(self)
- render(self)
- render to the fonts canvas
- set_origin(self, ox, oy)
- set_padx(self, pad)
- set the y padding in points
- set_pady(self, pad)
- set the y padding in points
- set_scale(self, scale)
- scale the element by scale
- set_size_info(self, fontsize, dpi)
Data and other attributes inherited from Element:
- dpi = 72
- font = 'it'
- fontsize = 12
|
class StandardPSFonts(Fonts) |
|
Use the standard postscript fonts for rendering to backend_ps |
|
Methods defined here:
- __init__(self)
- get_kern(self, font, symleft, symright, fontsize, dpi)
- get_metrics(self, font, sym, fontsize, dpi)
- render(self, ox, oy, font, sym, fontsize, dpi)
- set_canvas_size(self, w, h, pswriter)
- Dimension the drawing canvas; may be a noop
Data and other attributes defined here:
- basepath = '/usr/lib/python2.5/site-packages/matplotlib/mpl-data'
- fnames = ('psyr', 'pncri8a', 'pcrr8a', 'pncr8a', 'pzcmi8a')
- fontmap = {'cal': 'pzcmi8a', 'it': 'pncri8a', 'rm': 'pncr8a', 'tt': 'pcrr8a'}
|
class SymbolElement(Element) |
| |
Methods defined here:
- __init__(self, sym)
- __repr__(self)
- advance(self)
- get the horiz advance
- height(self)
- get the element height: ymax-ymin
- render(self)
- render to the fonts canvas
- set_font(self, font)
- set the font (one of tt, it, rm , cal)
- set_origin(self, ox, oy)
- set_size_info(self, fontsize, dpi)
- width(self)
- get the element width: xmax-xmin
- xmax(self)
- get the max ink in x
- xmin(self)
- get the minimum ink in x
- ymax(self)
- get the max ink in y
- ymin(self)
- get the minimum ink in y
Methods inherited from Element:
- centerx(self)
- centery(self)
- padx(self)
- pady(self)
- set_padx(self, pad)
- set the y padding in points
- set_pady(self, pad)
- set the y padding in points
- set_scale(self, scale)
- scale the element by scale
Data and other attributes inherited from Element:
- dpi = 72
- font = 'it'
- fontsize = 12
|
class UnicodeFonts(Fonts) |
|
An abstract base class for handling Unicode fonts.
Specific terminology:
* fontface: an FT2Font object, corresponding to a facename
* facename: a string that defines the (type)face's name - 'rm', 'it' etc.
* filename: a string that is used for generating a fontface object
* symbol*: a single Unicode character or a TeX command,
or to be precise, a TeX symbol command like lpha (but not rac) or
even a Type1/PS name
* filenamesd: a dict that maps the face's name to the filename:
filenamesd = { 'cal' : 'fontnamecal.ext',
'rm' : 'fontnamerm.ext',
'tt' : 'fontnamett.ext',
'it' : 'fontnameit.ext',
None : 'fontnamesmth.ext'}
filenamesd should be declared as a class atribute
* glyphdict: a dict used for caching of glyph specific data
* fonts: a dict of facename -> fontface pairs
* charmaps: a dict of facename -> charmap pairs
* glyphmaps: a dict of facename -> glyphmap pairs. A glyphmap is an
inverted charmap
* output: a string in ['Agg','SVG','PS'], coresponding to the backends
* index: Fontfile specific index of a glyph/char. Taken from a charmap. |
|
Methods defined here:
- __init__(self, output='Agg')
- # The path to the dir with the fontfiles
- get_metrics(self, facename, symbol, fontsize, dpi)
- render(self, ox, oy, facename, symbol, fontsize, dpi)
- set_canvas_size(self, w, h, pswriter=None)
- Dimension the drawing canvas; may be a noop
Methods inherited from Fonts:
- get_kern(self, facename, symleft, symright, fontsize, dpi)
- Get the kerning distance for font between symleft and symright.
facename is one of tt, it, rm, cal or None
sym is a single symbol(alphanum, punct) or a special symbol
like \sigma.
|
class math_parse_s_ft2font_common |
|
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:
- __call__(self, s, dpi, fontsize, angle=0)
- __init__(self, output)
Data and other attributes defined here:
- major = 2
- minor1 = 5
- minor2 = 0
- tmp = 0
| |
Functions |
| |
- FT2Font(...)
- FT2Font
- StringIO(...)
- StringIO([s]) -- Return a StringIO-like stream for reading or writing
- font_open(filename)
- get_type1_name(symbol)
- get_type1_name(symbol) -> string
Returns the the Type1 name of symbol.
symbol can be a single unicode character, or a TeX command (i.e. r'\pi').
- 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 |
| |
absolute = <ufunc 'absolute'>
accent = accent
alphanums = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
alphas = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
ampersand = "&"
at = "@"
bakoma_fonts = []
binop = {{{"+" | "-"} | "*"} | "/"}
bslash = "\"
cal = "cal"
char = W:(abcd...)
charOverChars = {r'\angstrom': (('rm', 'A', 1.0), (None, r'\circ', 0.5), 0.0)}
cmkern = {'cmex10': {}, 'cmmi10': {('9', 'A'): -0.055555, ('9', 'M'): -0.055555, ('9', 'N'): -0.055555, ('9', 'Y'): 0.055555, ('9', 'Z'): -0.055555, ('d', 'Y'): 0.055555, ('d', 'Z'): -0.055555, ('d', 'f'): -0.16666700000000001, ('d', 'j'): -0.111112}, 'cmr10': {('A', 'C'): -0.027779000000000002, ('A', 'G'): -0.027779000000000002, ('A', 'O'): -0.027779000000000002, ('A', 'Q'): -0.027779000000000002, ('A', 'T'): -0.083334000000000005, ('A', 'U'): -0.027779000000000002, ('A', 'V'): -0.111112, ('A', 'W'): -0.111112, ('A', 'Y'): -0.083334000000000005, ('A', 't'): -0.027779000000000002, ...}, 'cmsy10': {}, 'cmtt10': {}}
colon = ":"
comma = ","
composite = composite
div = "/"
division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)
equals = "="
exclamation = "!"
expression = expression
font = font
fontManager = <matplotlib.font_manager.FontManager instance at 0x81df58c>
fontname = {{{"rm" | "cal"} | "it"} | "tt"}
group = group
grouping = {{{"[" | "]"} | "("} | ")"}
handler = <matplotlib.mathtext.Handler instance at 0x83a5aac>
italics = "it"
langle = "<"
latex_to_bakoma = {'(': ('cmr10', 119), ')': ('cmr10', 68), '*': ('cmsy10', 9), '+': ('cmr10', 76), ',': ('cmmi10', 44), '-': ('cmsy10', 17), '.': ('cmmi10', 51), '/': ('cmmi10', 98), '0': ('cmr10', 40), '1': ('cmr10', 100), ...}
latex_to_standard = {r'\Delta': ('psyr', 68), r'\Diamond': ('psyr', 224), r'\Downarrow': ('psyr', 223), r'\Gamma': ('psyr', 89), r'\Im': ('psyr', 193), r'\Leftarrow': ('psyr', 220), r'\Leftrightarrow': ('psyr', 219), r'\Phi': ('psyr', 70), r'\Pi': ('psyr', 213), r'\Re': ('psyr', 194), ...}
lbrace = Suppress:("{")
lbrack = "["
lparen = "("
math_parse_s_ft2font = <matplotlib.mathtext.math_parse_s_ft2font_common instance at 0x83b848c>
math_parse_s_ft2font_svg = <matplotlib.mathtext.math_parse_s_ft2font_common instance at 0x83b84ac>
math_parse_s_pdf = <matplotlib.mathtext.math_parse_s_ft2font_common instance at 0x83b84ec>
math_parse_s_ps = <matplotlib.mathtext.math_parse_s_ft2font_common instance at 0x83b84cc>
minus = "-"
misc = {{{"!" | "@"} | "%"} | "&"}
number = Combine:({{W:(0123...) ["."]} [W:(0123...)]})
nums = '0123456789'
over = "over"
overUnder = {"over" | "under"}
overunder = {r'\coprod': 1, r'\int': 1, r'\prod': 1, r'\sum': 1}
percent = "%"
period = "."
plus = "+"
punctuation = {{{":" | ","} | "."} | ";"}
rangle = ">"
rbrace = Suppress:("}")
rbrack = "]"
rcParams = {'axes.axisbelow': False, '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': 'Qt4Agg', ...}
relation = {{"<" | ">"} | "="}
roman = "rm"
rparen = ")"
semicolon = ";"
space = {FollowedBy:("\") space}
subscript = subscript
subsuperscript = subsuperscript
superscript = superscript
symbol = Re:('(\\\\[a-zA-Z0-9]+(?!{))|([a-zA-Z0-9 ])|([+\\-*/])|([<>=])|([:,.;!])|([!@%&])|([[\\]()])')
symgroup = {{font | group} | Re:('(\\\\[a-zA-Z0-9]+(?!{))|(...+\\-*/])|([<>=])|([:,.;!])|([!@%&])|([[\\]()])')}
tex2type1 = {'AA': 'uni212B', 'AE': 'AE', 'BbbC': 'uni2102', 'BbbN': 'uni2115', 'BbbP': 'uni2119', 'BbbQ': 'uni211A', 'BbbR': 'uni211D', 'BbbZ': 'uni2124', 'Bumpeq': 'uni224E', 'Cap': 'uni22D2', ...}
tex2uni = {'AA': 8491, 'AE': 198, 'BbbC': 8450, 'BbbN': 8469, 'BbbP': 8473, 'BbbQ': 8474, 'BbbR': 8477, 'BbbZ': 8484, 'Bumpeq': 8782, 'Cap': 8914, ...}
texsym = Combine:({{"\" W:(abcd...)} ~{"{"}})
times = "*"
type12uni = {'A': 65, 'AE': 198, 'Aacute': 193, 'Acircumflex': 194, 'Adieresis': 196, 'Agrave': 192, 'Aring': 197, 'Atilde': 195, 'B': 66, 'C': 67, ...}
typewriter = "tt"
under = "under"
uni2type1 = {32: 'space', 33: 'exclam', 34: 'quotedbl', 35: 'numbersign', 36: 'dollar', 37: 'percent', 38: 'ampersand', 39: 'quotesingle', 40: 'parenleft', 41: 'parenright', ...}
verbose = <matplotlib.Verbose instance at 0x80f50ac> |
|