KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache
System : Linux server112.speedpacket.com 3.10.0-962.3.2.lve1.5.36.el7.x86_64 #1 SMP Mon May 18 02:16:06 EDT 2020 x86_64
User : equistyl ( 1341)
PHP Version : 8.1.30
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/matplotlib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/matplotlib/mathtext.pyc
�
r`]c@ s�dZddlmZmZddlZddlZejddkrZddlmZnddl	mZddl
mZyeWn!e
k
r�ddlmZnXddlZdd	lmZdd
lmZmZddlZejddkrvddlmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*n|ddlmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*e(j+�ddl,m-Z-dd
l.m/Z/m0Z0m1Z1m2Z2ddl3m4Z4m5Z5m6Z6m7Z7m8Z8ddl9m:Z:m;Z;ddl<m=Z=m>Z>m?Z?m@Z@mAZAddlBmCZCmDZDddlEjFZGddlHjIZId�ZJd�ZKdeLfd��YZMdeMfd��YZNdeNfd��YZOdeMfd��YZPdeMfd��YZQdeMfd��YZRd eMfd!��YZSd"eMfd#��YZTd$eLfd%��YZUd&eUfd'��YZVd(eVfd)��YZWd*eVfd+��YZXd,eXfd-��YZYd.eYfd/��YZZd0eUfd1��YZ[d2Z\d3e\Z]d4Z^d5Z_d6Z`d7Zad8Zbd9Zcd:edfd;��YZed<eLfd=��YZfd>effd?��YZgd@egfdA��YZhdBegfdC��YZidDeffdE��YZjdFejfdG��YZkdHegfdI��YZldJelfdK��YZmdLelfdM��YZndNegfdO��YZodPeofdQ��YZpdReofdS��YZqdTeffdU��YZrdVeLfdW��YZsiesd8d3dXd8d�dY6esd8d3dZd8d�d[6esd8d3dd8d�d\6esd8d8dd3dX�d]6esd8d8dd3dZ�d^6esd8d8dd3d�d_6esd8d8dd8d�d`6esd8d3dXdadX�db6es_tdcerfdd��YZudeerfdf��YZvdgerfdh��YZwdierfdj��YZxdkerfdl��YZydmerfdn��YZzdoerfdp��YZ{dqemfdr��YZ|dsemfdt��YZ}dueffdv��YZ~dwemfdx��YZdyemfdz��YZ�d{emfd|��YZ�d}eLfd~��YZ�e��Z�d�Z�d�eLfd���YZ�d�eLfd���YZ�e�e�e�d��Z�dS(�s�
:mod:`~matplotlib.mathtext` is a module for parsing a subset of the
TeX math syntax and drawing them to a matplotlib backend.

For a tutorial of its usage see :ref:`mathtext-tutorial`.  This
document is primarily concerned with implementation details.

The module uses pyparsing_ to parse the TeX expression.

.. _pyparsing: http://pyparsing.wikispaces.com/

The Bakoma distribution of the TeX Computer Modern fonts, and STIX
fonts are supported.  There is experimental support for using
arbitrary fonts, but results may vary without proper tweaking and
metrics for those fonts.

If you find TeX expressions that don't parse or render properly,
please email mdroe@stsci.edu, but please check KNOWN ISSUES below first.
i����(tdivisiontprint_functionNii(tStringIO(tceil(tSet(twarn(tinftisinf(tCombinetGrouptOptionaltForwardtLiteralt	OneOrMoret
ZeroOrMoretParseExceptiontEmptytParseResultstSuppresstoneOft	StringEndtParseFatalExceptiont
FollowedBytRegext
ParserElementtQuotedStringtParseBaseException(tAFM(tBunchtget_realpath_and_stattis_string_liketmaxdict(tFT2FonttFT2ImagetKERNING_DEFAULTtLOAD_FORCE_AUTOHINTtLOAD_NO_HINTING(tfindfonttFontProperties(tlatex_to_bakomatlatex_to_standardttex2unit
latex_to_cmextstix_virtual_fonts(t
get_data_pathtrcParamscC sx|dkrdSyt|�SWntk
r1nXyt|jd�SWn*tk
rsdt�}t|��nXdS(s�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').
t-i"s\sA'%(symbol)s' is not a valid Unicode character or
TeX/Type1 symbolN(tordt	TypeErrorR)tstriptKeyErrortlocalst
ValueError(tsymboltmessage((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytget_unicode_indexEs


cC s-yt|�SWntk
r(td�SXdS(s�Return the Unicode character corresponding to the index,
or the replacement character if this is a narrow build of Python
and the requested character is outside the BMP.i��N(tunichrR4(tindex((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytunichr_safe^s
tMathtextBackendcB sDeZdZd�Zd�Zd�Zd�Zd�Zd�ZRS(s�
    The base class for the mathtext backend-specific code.  The
    purpose of :class:`MathtextBackend` subclasses is to interface
    between mathtext and a specific matplotlib graphics backend.

    Subclasses need to override the following:

      - :meth:`render_glyph`
      - :meth:`render_filled_rect`
      - :meth:`get_results`

    And optionally, if you need to use a Freetype hinting style:

      - :meth:`get_hinting_type`
    cC sd|_d|_d|_dS(Ni(twidththeighttdepth(tself((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyt__init__ws		cC s||_||_||_dS(sDimension the drawing canvasN(R<R=R>(R?twthtd((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytset_canvas_size|s		cC s
t��dS(s_
        Draw a glyph described by *info* to the reference point (*ox*,
        *oy*).
        N(tNotImplementedError(R?toxtoytinfo((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytrender_glyph�scC s
t��dS(sR
        Draw a filled black rectangle from (*x1*, *y1*) to (*x2*, *y2*).
        N(RE(R?tx1ty1tx2ty2((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytrender_filled_rect�scC s
t��dS(sp
        Return a backend-specific tuple to return to the backend after
        all processing is done.
        N(RE(R?tbox((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytget_results�scC stS(s\
        Get the Freetype hinting type to use with this particular
        backend.
        (R$(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytget_hinting_type�s(	t__name__t
__module__t__doc__R@RDRIRNRPRQ(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR;gs					tMathtextBackendAggcB sMeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(s�
    Render glyphs and rectangles to an FTImage buffer, which is later
    transferred to the Agg image by the Agg backend.
    cC sJd|_d|_d|_d|_ddddg|_tj|�dS(Nitbbox(RFRGtNonetimagetmodeRVR;R@(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�s				cC sYt|jd|�t|jd|�t|jd|�t|jd|�g|_dS(Niiii(tminRVtmax(R?RJRKRLRM((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyt_update_bbox�scC sNtj||||�|jdkrJtt|�t||��|_ndS(NRV(R;RDRYR!RRX(R?RARBRC((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRD�scC s�|jdkrP|j||jj||jj||jj||jj�n3|jj|j	|||jj
|jdtd�dS(NRVtantialiasedstext.antialiased(
RYR\tmetricstxmintymaxtxmaxtymintfonttdraw_glyph_to_bitmapRXticebergtglyphR-(R?RFRGRH((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRI�s

	cC s�|jdkr(|j||||�n�tt||�dd�}|dkrz||d}t||dd�}nt|�}|jjt|�|t|�||�dS(NRViig@(RYR\R[tintRXtdraw_rect_filledR(R?RJRKRLRMR=tcenterty((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytrender_rect_filled�scC s	d|_|j}|j}tdd|�|j}|dd|dd|dd|ddg}d|_|j|d|d|d|d||d|d|�t|d|d|�|j|j|j|j|j|j|j	|f}d|_	|S(NRViiiitrender(RYR=R>tshipRVRDRFRGR<RXRW(R?ROtused_characterstorig_heightt
orig_depthRVtresult((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRP�s*				2	
		cC sddlm}|j�S(Ni����(tbackend_agg(tmatplotlib.backendsRrtget_hinting_flag(R?Rr((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRQ�s(
RRRSRTR@R\RDRIRkRPRQ(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRU�s						tMathtextBackendBitmapcB seZd�ZRS(c
C s4tj|||�\}}}}}}}	||fS(N(RURP(
R?RORnRFRGR<R=R>RXt
characters((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRP�s*(RRRSRP(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRu�stMathtextBackendPscB s2eZdZd�Zd�Zd�Zd�ZRS(sX
    Store information to write a mathtext rendering to the PostScript
    backend.
    cC st�|_d|_dS(N(RtpswriterRWtlastfont(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�scC s�|j||j}|j}|j}|j}||f|jkrsdt�}||f|_|jj|�ndt�}|jj|�dS(Ns=/%(postscript_name)s findfont
%(fontsize)s scalefont
setfont
s1%(ox)f %(oy)f moveto
/%(symbol_name)s glyphshow

(	R=toffsettpostscript_nametfontsizetsymbol_nameRyR3Rxtwrite(R?RFRGRHR{R|R}tps((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRI�s			

cC s9d||j|||||f}|jj|�dS(Ns%f %f %f %f rectfill
(R=RxR~(R?RJRKRLRMR((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRk	s%cC s:td|j|�|j|j|j|j|j|fS(Ni(RmR>R<R=Rx(R?RORn((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRP
s
(RRRSRTR@RIRkRP(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRw�s
			tMathtextBackendPdfcB s2eZdZd�Zd�Zd�Zd�ZRS(sQ
    Store information to write a mathtext rendering to the PDF
    backend.
    cC sg|_g|_dS(N(tglyphstrects(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@s	cC sO|jj}|j||j}|jj||||j|j|jf�dS(N(	RctfnameR=RzR�tappendR|tnumR}(R?RFRGRHtfilename((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRIs
	cC s/|jj||j|||||f�dS(N(R�R�R=(R?RJRKRLRM((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRk%scC s@td|j|�|j|j|j|j|j|j|fS(Ni(RmR>R<R=R�R�(R?RORn((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRP(s
(RRRSRTR@RIRkRP(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�s
			tMathtextBackendSvgcB s2eZdZd�Zd�Zd�Zd�ZRS(sQ
    Store information to write a mathtext rendering to the SVG
    backend.
    cC sg|_g|_dS(N(t
svg_glyphst	svg_rects(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@6s	cC sF|j||j}|jj|j|j|j|||jf�dS(N(R=RzR�R�RcR|R�R^(R?RFRGRH((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRI:s	cC s3|jj||j|d||||f�dS(Ni(R�R�R=(R?RJRKRLRM((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRk@s	cC sRtd|j|�td|jd|j�}|j|j|j|j||fS(NiR�R�(RmR>RR�R�R<R=(R?RORntsvg_elements((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRPDs
(RRRSRTR@RIRkRP(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�1s
			tMathtextBackendPathcB s2eZdZd�Zd�Zd�Zd�ZRS(sY
    Store information to write a mathtext rendering to the text path
    machinery.
    cC sg|_g|_dS(N(R�R�(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@Ts	cC sF|j||j}|j}|jj|j|j|||f�dS(N(R=RzR�R�R�RcR|(R?RFRGRHtthetext((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRIXs		cC s/|jj||j|||||f�dS(N(R�R�R=(R?RJRKRLRM((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRk^s	cC s=td|j|�|j|j|j|j|j|jfS(Ni(RmR>R<R=R�R�(R?RORn((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRPbs
(RRRSRTR@RIRkRP(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�Ns
			tMathtextBackendCairocB s2eZdZd�Zd�Zd�Zd�ZRS(sS
    Store information to write a mathtext rendering to the Cairo
    backend.
    cC sg|_g|_dS(N(R�R�(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@ps	cC sL||j|j}t|j�}|jj|j|j|||f�dS(N(RzR=R:R�R�R�RcR|(R?RFRGRHR�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRIts	cC s/|jj|||j||||f�dS(N(R�R�R=(R?RJRKRLRM((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRkzs	cC s=td|j|�|j|j|j|j|j|jfS(Ni(RmR>R<R=R�R�(R?RORn((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRP~s
(RRRSRTR@RIRkRP(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�js
			tFontscB szeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�ZRS(
s�
    An abstract base class for a system of fonts to use for 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.
    cC s||_||_i|_dS(sH
        *default_font_prop*: A
        :class:`~matplotlib.font_manager.FontProperties` object to use
        for the default non-math font, or the base font for Unicode
        (generic) font rendering.

        *mathtext_backend*: A subclass of :class:`MathTextBackend`
        used to delegate the actual rendering.
        N(tdefault_font_proptmathtext_backendRn(R?R�R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�s
		cC s
d|_dS(sa
        Fix any cyclical references before the object is about
        to be destroyed.
        N(RWRn(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytdestroy�sc

C sdS(su
        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/regular (non-math)

        *fontclassX*: TODO

        *symX*: a symbol in raw TeX form. e.g. '1', 'x' or '\sigma'

        *fontsizeX*: the fontsize in points

        *dpi*: the current dots-per-inch
        g((
R?tfont1t
fontclass1tsym1t	fontsize1tfont2t
fontclass2tsym2t	fontsize2tdpi((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytget_kern�scC s"|j|||||�}|jS(s
        *font*: one of the TeX font names::

          tt, it, rm, cal, sf, bf or default/regular (non-math)

        *font_class*: TODO

        *sym*:  a symbol in raw TeX form. e.g. '1', 'x' or '\sigma'

        *fontsize*: font size in points

        *dpi*: current dots-per-inch

        Returns an object with the following attributes:

          - *advance*: The advance distance (in points) of the glyph.

          - *height*: The height of the glyph in points.

          - *width*: The width of the glyph in points.

          - *xmin*, *xmax*, *ymin*, *ymax* - the ink rectangle of the glyph

          - *iceberg* - the distance from the baseline to the top of
            the glyph.  This corresponds to TeX's definition of
            "height".
        (t	_get_infoR^(R?Rct
font_classtsymR|R�RH((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytget_metrics�scC sRt|�t|�t|�|_|_|_|jj|j|j|j�dS(s�
        Set the size of the buffer used to render the math expression.
        Only really necessary for the bitmap backends.
        N(RR<R=R>R�RD(R?RARBRC((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRD�s/cC s|j|||||�}t|jj�\}	}
|jj|
|	t�f�}|dj|j�|j	j
|||�dS(s
        Draw a glyph at

          - *ox*, *oy*: position

          - *facename*: One of the TeX face names

          - *font_class*:

          - *sym*: TeX symbol name or single character

          - *fontsize*: fontsize in points

          - *dpi*: The dpi to draw at.
        iN(R�RRcR�Rnt
setdefaulttsettaddR�R�RI(R?RFRGtfacenameR�R�R|R�RHtrealpathtstat_keyRn((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRI�s	cC s|jj||||�dS(sL
        Draw a filled rectangle from (*x1*, *y1*) to (*x2*, *y2*).
        N(R�Rk(R?RJRKRLRM((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRk�scC s
t��dS(sF
        Get the xheight for the given *font* and *fontsize*.
        N(RE(R?RcR|R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytget_xheight�scC s
t��dS(s�
        Get the line thickness that matches the given font.  Used as a
        base unit for drawing lines such as in a fraction or radical.
        N(RE(R?RcR|R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytget_underline_thicknessscC s|jS(s�
        Get the set of characters that were used in the math
        expression.  Used by backends that need to subset fonts so
        they know which glyphs to include.
        (Rn(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytget_used_charactersscC s)|jj||j��}|j�|S(s�
        Get the data needed by the backend to render the math
        expression.  The return value is backend-specific.
        (R�RPR�R�(R?RORq((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRPs
cC s
||fgS(s
        Override if your font provides multiple sizes of the same
        symbol.  Should return a list of symbols matching *sym* in
        various sizes.  The expression renderer will select the most
        appropriate size for a given situation from this list.
        ((R?tfontnameR�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyt!get_sized_alternatives_for_symbols(RRRSRTR@R�R�R�RDRIRkR�R�R�RPR�(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��s												t
TruetypeFontscB sieZdZddd��YZd�Zd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�ZRS(sa
    A generic base class for all font setups that use Truetype fonts
    (through FT2Font).
    t
CachedFontcB seZd�Zd�ZRS(cC sS||_|j�|_tg|jj�D]\}}||f^q+�|_dS(N(Rctget_charmaptcharmaptdictt	iteritemstglyphmap(R?Rctccodetglyphind((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@(s	cC s
t|j�S(N(treprRc(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyt__repr__.s(RRRSR@R�(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�'s	cC sjtj|||�i|_i|_t|�}|jtt|���}||jd<||jd<dS(Ntdefaulttregular(R�R@tglyphdt_fontsR%R�R tstr(R?R�R�R�tdefault_font((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@1s		
cC sd|_tj|�dS(N(RWR�R�R�(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�;s	cC s�||jkr|j|}n|}|jj|�}|dkr�tt|��}|j|�}||j|<||j|j<||j|jj�<n|S(N(	tfontmapR�tgetRWR R�R�R{tlower(R?Rctbasenametcached_font((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyt	_get_font?s
cC s5|jjdkr1|jdd|d|dSdS(NtCmex10gP@g@g@gR@g(RcR{R=(R?R�RfR|R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyt_get_offsetNscC s�|||||f}|jj|�}|dk	r7|S|j||||�\}}	}
}}|j}|j||�|j|	d|jj��}
g|
j	D]}|d^q�\}}}}|j
||
||�}td|
jdd|
j
dd|
jdd|d|d	||d
||d|
jd|d|�	}td
|d|d|jd|d|
d|	d|
d|�}|j|<|S(NtflagsgP@tadvanceg�@R=R<R_RaRbR`RetslantedRcR|R{R^R}R�RfRz(R�R�RWt
_get_glyphRctset_sizet	load_charR�RQRVR�RtlinearHoriAdvanceR=R<thoriBearingYR{(R?R�R�R�R|R�tkeytbunchR�R�R}R�RcRftvalR_RbRaR`RzR^Rq((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�Ss@'	,




		cC s�|j|�}|jj||�|jjd�}|dkrf|j|tdd||�}|jS|dd|d|d}|S(Ntpcltsmathtext.defaulttxtxHeightgP@g(@gY@(R�RcR�tget_sfnt_tableRWR�R-Re(R?RcR|R�R�R�R^R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�}scC sd||dS(Ng�?g(@gR@g�?((R?RcR|R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��sc

C s�||krt||krt|j|||||	�}
|j|||||	�}|
j}|j|
j|jt�dStj||||||||||	�
S(NgP@(R�Rctget_kerningR�R"R�R�(
R?R�R�R�R�R�R�R�R�R�tinfo1tinfo2Rc((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��s	((RRRSRTR�R@R�R�R�R�R�R�R�(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�"s
	
				*		tBakomaFontscB s'eZdZidd6dd6dd6dd6d	d
6dd6d
d6Zd�Zedj��Zd�Zidodpdqdrdsgd6dtdudvdwdxgd6dydzd{d|d}gd6d~dd�d�d�gd 6d�d�d�d�gd$6d�d�d�d�gd(6d�d�d�d�gd06d�d�d�d�gd56d�d�d�d�gd:6d�d�d�d�gd?6d�d�d�d�gdD6d�d�d�d�gdI6d�d�d�d�gdN6d�d�d�d�gdS6d�d�d�d�d�gdP6d�d�d�d�gd\6d�d�d�d�gda6d�d�gdb6d�d�gdc6Z	x@d�d�d�d�d�d�d�d�d�d�g
D]\Z
Ze	ee	e
<q�Wdn�ZRS(�s�
    Use the Bakoma TrueType fonts for rendering.

    Symbols are strewn about a number of font files, each of which has
    its own proprietary 8-bit encoding.
    tcmsy10tcaltcmr10trmtcmtt10ttttcmmi10tittcmb10tbftcmss10tsftcmex10texcO sxt||�|_tj|||�i|_xC|jj�D]2\}}t|�}||j|<||j|<q>WdS(N(t	StixFontst_stix_fallbackR�R@R�t_fontmapR�R%(R?targstkwargsR�R�tfullpath((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�s	
s
\int \ointcC s[d}||jkr�|tkr�t|\}}|dkpI||jk}y|j|�}	Wntk
rrq#X|	jj|�}|	j|}n�t	|�dkr#|dk}y|j|�}	Wntk
r�q#Xt
|�}|	jj|�}
|
dk	r#|	jj|	j|�}q#n|dkrH|j
j||||�S|	||||fS(NR�iR�(RWR�R't_slanted_symbolsR�tRuntimeErrorRctget_glyph_nameR�tlenR/R�R�R�R�(R?R�R�R�R|R}R�R�R�R�tgid((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��s2

		t(s�s�s�s�t)s�s�s�s!t{s�tns�t}s�tos�t[s�RBs"t]s�tis#s�tjs�s$s\lfloors�tks�s%s\rfloors�tls�s&s\lceils�tms�s's\rceils�tDs�s*s\langles�tEs�s+s\rangletptqtrtss	\__sqrt__s�s/s�s-s
\backslashs�s.s�s,s^tbtcRCs\widehats~tetftgs
\widetildet<t>s
\leftparens
ightparents
\leftbraces

ightbraces\leftbrackets
ightbrackets\{s\}s\[s\]cC s|jj|||fg�S(N(t_size_alternativesR�(R?R�R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�s(R�R�(R�s�(R�s�(R�s�(R�s�(R�R�(R�s�(R�s�(R�s�(R�s!(R�R�(R�s�(R�sn(R�s�(R�R�(R�R�(R�s�(R�so(R�s�(R�R�(R�R�(R�s�(R�sh(R�s"(R�R�(R�s�(R�si(R�s#(R�s�(R�sj(R�s�(R�s$(R�s�(R�sk(R�s�(R�s%(R�s�(R�sl(R�s�(R�s&(R�s�(R�sm(R�s�(R�s'(R�s�(R�sD(R�s�(R�s*(R�s�(R�sE(R�s�(R�s+(R�sp(R�sq(R�sr(R�ss(R�s�(R�s/(R�s�(R�s-(R�s/(R�s�(R�s.(R�s�(R�s,(R�s^(R�sb(R�sc(R�sd(R�s~(R�se(R�sf(R�sg(R�sh(R�sD(R�si(R�sE(s
\leftparenR�(s
ightparentR�(s
\leftbraceR�(s

ightbraceR�(s\leftbracketR�(s
ightbracketR�(s\{R�(s\}R�(s\[R�(s\]R�(
RRRSRTR�R@R�tsplitR�R�R
taliasttargetR�(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��sx

		"	
	
	
	
	
	








	
	
	

tUnicodeFontscB sJeZdZeZd�Zedj��Zd�Z	d�Z
d�ZRS(sa
    An abstract base class for handling Unicode fonts.

    While some reasonably complete Unicode fonts (such as DejaVu) may
    work in some situations, the only Unicode font I'm aware of with a
    complete set of math symbols is STIX.

    This class will "fallback" on the Bakoma fonts when a required
    symbol can not be found in the font.
    cO s�tdrt||�|_n	d|_tj|||�i|_x;dj�D]-}td|}t|�}||j|<qQWt	d�}t|�}||jd<dS(Nsmathtext.fallback_to_cmscal rm tt it bf sfs	mathtext.R�R�(
R-R�tcm_fallbackRWR�R@R�RR%R&(R?R�R�ttexfonttpropRc((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@s
		s
\int \ointcC s
||fS(N((R?R�R�tuniindex((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyt_map_virtual_font.sc
	C s�t}|jr<tj|�}|dk	r<d}t}q<n|s�yt|�}t}Wq�tk
r�td�}t	d|j
dd�t�q�Xn|j|||�\}}|}|r�|dkr$|dkr$t
|�}tj|�dd	kstj|�jd
�r!d}q!q$n|dkp<||jk}	t}y|j|�}
Wntk
rkq�Xy|
j|}t}Wq�tk
r�q�Xn|sj|jr�t	dt�|jj|d||�S|dkrt|t�r|jd|||�St	d||j
dd�|ft�t	dt�d}|}|j|�}
d}|
j|}t}	n|
jj|�}|
||||	fS(NR�t?s"No TeX to unicode mapping for '%s'tasciitbackslashreplaceR�iitLs
GREEK CAPITALR�s0Substituting with a symbol from Computer Modern.R�s.Font '%s' does not have a glyph for '%s' [U%x]s!Substituting with a dummy symbol.i�(sitsregular(tFalsetuse_cmexR*R�RWtTrueR7R4R/RtencodetMathTextWarningRR8tunicodedatatcategorytnamet
startswithR�R�R�R�R2RR�t
isinstanceR�RcR�(
R?R�R�R�R|tfound_symbolRtnew_fontnamet	unistringR�R�t
glyphindexR}((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�1sp	





		

	cC s)|jr|jj||�S||fgS(N(RR�(R?R�R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�ws		
(RRRSRTRRR@R�RR�RR�R�(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRs
			FR�cB s�eZdZidd6dd6dd6dd6d	d
6dd6dd
6dd6dd6dd6dd6dd6ZeZeZeZd�Zd�Z	iZ
d�ZRS(sa
    A font handling class for the STIX fonts.

    In addition to what UnicodeFonts provides, this class:

    - supports "virtual fonts" which are complete alpha numeric
      character sets with different font styles at special Unicode
      code points, such as "Blackboard".

    - handles sized alternative characters for the STIXSizeX fonts.
    tSTIXGeneralR�sSTIXGeneral:italicR�sSTIXGeneral:weight=boldR�tSTIXNonUnicodetnonunirmsSTIXNonUnicode:italictnonuniitsSTIXNonUnicode:weight=boldtnonunibfitSTIXSizeOneSymitSTIXSizeTwoSymitSTIXSizeThreeSymitSTIXSizeFourSymitSTIXSizeFiveSymicO sftj|||�i|_xC|jj�D]2\}}t|�}||j|<||j|<q,WdS(N(R�R@R�R�R�R%(R?R�R�R�RR�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�s	
c
C s�tj|�}|jrC|dkrC|dkrCtd}t}nt}|dk	rLt|t�ry|j|d�}nd}t|�}x_||kr�||d}||}	||	dkr�|}q�||	dkr�Pq�|d}q�W||	dkr0||	dkr0||	d|	d}|	d}qL|sLd}t	d	}qLn|dkr}|dkr}|d
kr}d|}n||fS(NR�R�R�R�iiiismathtext.defaultR�R�i�i��tnonuni(sregularsdefault(sitsrmsbf(
R+R�t_sansRWRRR!R�R�R-(
R?R�R�Rtmappingtdoing_sans_conversiontlothitmidtrange((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�s:
	
	 

c
C s@idd6dd6dd6dd6}|j||�}|jj|�}|rP|Sg}yt|�}Wntk
r�||fgSXid	td
�6dtd�6}|j||�}x]td
�D]O}|j|�}|jj|�}	|	dk	r�|j	|t
|�f�q�q�W|dkr/|d }n||j|<|S(NR�s\{R�s\}R�s\[R�s\]i�'Ri�'R	is	\__sqrt__i����(R�R
R7R4R/R7R�R�RWR�R:(
R?R�R�tfixestalternativesRtfix_upsR�R�R%((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��s."

 

(RRRSRTR�RRRR1R@RR
R�(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�}s(

		+t
StixSansFontscB seZdZeZRS(sd
    A font handling class for the STIX fonts (that uses sans-serif
    characters by default).
    (RRRSRTRR1(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR;�stStandardPsFontscB s�eZdZejje�dd�Zidd6dd6dd6d	d
6dd6d
d6dd6Z	d�Z
d�Zd�Zd�Z
d�Zd�ZRS(s�
    Use the standard postscript fonts for rendering to backend_ps

    Unlike the other font classes, BakomaFont and UnicodeFont, this
    one requires the Ps backend.
    tfontstafmtpzcmi8aR�tpncr8aR�tpcrr8aR�tpncri8aR�tphvr8aR�tpncb8aR�tpsyrcC s�tj||t��i|_i|_t|ddd|j�}|dkrmtdddd|j�}nt|d��}t	|�}WdQX||_
||jd<||jd<t�|_dS(NtfontextR>t	directoryt	HelveticaRR�R�(
R�R@RwR�R=R%tbasepathRWtopenRR�RRx(R?R�R�tfdR�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@
s			

cC s�||jkr|j|}n|}|jj|�}|dkr�tjj|j|d�}t|d��}t	|�}WdQX||_
||j|<||j|j�<n|S(Ns.afmR(R�R=R�RWtostpathtjoinRIRJRR�tget_fontname(R?RcR�R�R�RK((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�s	
cC s�||||f}|jj|�}|dk	r4|S|dkrzt|�dksqtjt|��jd�rzd}nt}|t	kr�t	|\}}	t
|	�}
t}n>t|�dkr�|}
t|
�}	t}nt
d|t�|dk}|j|�}|rZy|j|
�}
WqZtk
rVt
d|j|ft�t}qZXn|s�d}
}t|
�}	|j|
�}
nd}d	|}g|j|
�D]}||^q�\}}}}td
|j|
�|d|j|
�|d|j|
�|d
|d|d||d||d||d|�	}td|d|d|j�d|d|
d|	d|
d|�|j|<|j|S(s/load the cmfont, metrics and glyph with cachingR�iRR�s.No TeX to built-in Postscript mapping for '%s's2No glyph in standard Postscript font '%s' for '%s'Rig����MbP?R�R<R=R_RaRbR`ReR�RcR|R{R^R}R�RfRzN(R�R�RWR�RRtunicodeR RR(tchrRR/RRR�t
get_name_charR2R{t
get_bbox_charRtget_width_chartget_height_charRO(R?R�R�R�R|R�R�ttupR"R�RfR�RcR}RztscaleR�R_RbRaR`R^((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�,sr			





/


	c

C s�||kru||kru|j|||||	�}
|j|||||	�}|
j}|j|
j|j�d|Stj||||||||||	�
S(Ng����MbP?(R�Rct
get_kern_distRfR�R�(
R?R�R�R�R�R�R�R�R�R�R�R�Rc((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�zs	cC s!|j|�}|j�d|S(Ng����MbP?(R�R�(R?RcR|R�R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��scC s!|j|�}|j�d|S(Ng����MbP?(R�R�(R?RcR|R�R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��sN(RRRSRTRLRMRNR,RIRWR�R@R�R�R�R�R�(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR<�s

			N		gffffff�?g�?ig�������?g333333�?g�?gg
ףp=
�?RcB seZRS((RRRS(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�stNodecB sMeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(s%
    A node in the TeX box model
    cC s
d|_dS(Ni(tsize(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�scC s
|j�S(N(t__internal_repr__(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��scC s
|jjS(N(t	__class__RR(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR[�scC sdS(Ng((R?tnext((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��scC s|jd7_dS(s�
        Shrinks one level smaller.  There are only three levels of
        sizes, after which things will no longer get smaller.
        iN(RZ(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytshrink�scC s|jd8_dS(sb
        Grows one level larger.  There is no limit to how big
        something can get.
        iN(RZ(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytgrow�scC sdS(N((R?R�Rj((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRl�s(
RRRSRTR@R�R[R�R^R_Rl(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRY�s						tBoxcB s2eZdZd�Zd�Zd�Zd�ZRS(s7
    Represents any node with a physical location.
    cC s,tj|�||_||_||_dS(N(RYR@R<R=R>(R?R<R=R>((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�s
		cC sPtj|�|jtkrL|jt9_|jt9_|jt9_ndS(N(RYR^RZtNUM_SIZE_LEVELSR<t
SHRINK_FACTORR=R>(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR^�s

cC s>tj|�|jt9_|jt9_|jt9_dS(N(RYR_R<tGROW_FACTORR=R>(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR_�s
cC sdS(N((R?RJRKRLRM((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRl�s(RRRSRTR@R^R_Rl(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR`�s
			tVboxcB seZdZd�ZRS(s.
    A box with only height (zero width).
    cC stj|d||�dS(Ng(R`R@(R?R=R>((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�s(RRRSRTR@(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRd�stHboxcB seZdZd�ZRS(s8
    A box with only width (zero height and depth).
    cC stj||dd�dS(Ng(R`R@(R?R<((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@s(RRRSRTR@(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRe�stCharcB sVeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
RS(	s#
    Represents a single character.  Unlike TeX, the font information
    and metrics are stored with each :class:`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 :class:`Kern` node when the
    :class:`Char` is added to its parent :class:`Hlist`.
    cC s�tj|�||_|j|_t|jtttf�sCt	�|j|_|j
|_
|j|_|j|_|j
�dS(N(RYR@Rtfont_outputR!RcR�RPRgtAssertionErrorR�R|R�t_update_metrics(R?Rtstate((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@s
	!cC sd|jS(Ns`%s`(R(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR[scC s�|jj|j|j|j|j|j�}|_|jdkrR|j|_	n|j	|_	|j
|_|j
|j|_dS(Nt (
RgR�RcR�RR|R�t_metricsR�R<ReR=R>(R?R^((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRis	+cC s
|jjS(N(RlR�(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyt
is_slanted(sc
C sx|jj|j}d}t|t�rp|jj|j|j|j	|j
|j|j|j	|j
|j�	}n||S(s�
        Return the amount of kerning between this and the given
        character.  Called when characters are strung together into
        :class:`Hlist` to create :class:`Kern` nodes.
        g(RlR�R<R!RfRgR�RcR�RR|R�(R?R]R�tkern((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�+s	cC s5|jj|||j|j|j|j|j�dS(s4
        Render the character to the canvas
        N(RgRIRcR�RR|R�(R?R�Rj((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRl:s	cC s_tj|�|jtkr[|jt9_|jt9_|jt9_|jt9_ndS(N(	RYR^RZRaR|RbR<R=R>(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR^Bs
cC sMtj|�|jt9_|jt9_|jt9_|jt9_dS(N(RYR_R|RcR<R=R>(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR_Js

(RRRSRTR@R[RiRmR�RlR^R_(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRfs
	
		
				tAccentcB s2eZdZd�Zd�Zd�Zd�ZRS(s�
    The font metrics need to be dealt with differently for accents,
    since they are already offset correctly from the baseline in
    TrueType fonts.
    cC sg|jj|j|j|j|j|j�}|_|j|j	|_
|j|j|_
d|_dS(Ni(RgR�RcR�RR|R�RlRaR_R<R`RbR=R>(R?R^((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRiWs
	+cC stj|�|j�dS(N(RfR^Ri(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR^^s
cC stj|�|j�dS(N(RfR_Ri(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR_bs
cC sI|jj||jj||jj|j|j|j|j|j	�dS(s5
        Render the character to the canvas.
        N(
RgRIRlR_RbRcR�RR|R�(R?R�Rj((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRlfs	(RRRSRTRiR^R_Rl(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRoQs
			tListcB sDeZdZd�Zd�Zd�Zd�Zd�Zd�ZRS(s:
    A list of nodes (either horizontal or vertical).
    cC sGtj|ddd�d|_||_d|_d|_d|_dS(Ngi(R`R@tshift_amounttchildrentglue_sett	glue_signt
glue_order(R?telements((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@rs				cC sQd|j�|j|j|j|jdjg|jD]}t|�^q4�fS(Ns![%s <%.02f %.02f %.02f %.02f> %s]Rk(R[R<R=R>RqRNRrR�(R?R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�{s
	cC sKd}x>tt|�ddd�D] }||dkr#|}Pq#q#W|S(s�
        A helper function to determine the highest order of glue
        used by the members of this list.  Used by vpack and hpack.
        iii����g(R7R�(R?ttotalsR�R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyt_determine_order�s#cC s�|j|�}||_||_||dkrE||||_nd|_d|_|dkr�t|j�r�td||jj	|ft
�q�ndS(Ngis	%s %s: %r(RxRuRtRst
glue_ratioR�RrRR\RRR(R?R�tsignRwt
error_typeR�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyt	_set_glue�s				cC s_x|jD]}|j�q
Wtj|�|jtkr[|jt9_|jt9_ndS(N(RrR^R`RZRaRqRbRs(R?tchild((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR^�s
cC sMx|jD]}|j�q
Wtj|�|jt9_|jt9_dS(N(RrR_R`RqRcRs(R?R}((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR_�s

(	RRRSRTR@R�RxR|R^R_(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRpns						tHlistcB s8eZdZdded�Zd�Zddd�ZRS(s%
    A horizontal list of boxes.
    gt
additionalcC s1tj||�|r#|j�n|j�dS(N(RpR@Rnthpack(R?RvRAR�tdo_kern((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�s
cC s�g}t|j�}|r�x�t|�D]�}|j|}||dkr_|j|d}nd}|j|�|j|�}|dkr(t|�}|j|�q(q(W||_ndS(s)
        Insert :class:`Kern` nodes between :class:`Char` nodes to set
        kerning.  The :class:`Char` nodes themselves determine the
        amount of kerning they need (in :meth:`~Char.get_kerning`),
        and this function just creates the linked list in the correct
        way.
        igN(R�RrR7RWR�R�tKern(R?tnew_childrentnum_childrenR�telemR]tkerning_distanceRn((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRn�s

cC sd}d}d}dgd}dgd}xG|jD]<}t|t�r||j7}t||j�}t||j�}q6t|t�r�||j7}t|j�rrt|j�rrt	|dd�}	t||j|	�}t||j|	�}qrq6t|t
�rS|j}
||
j7}||
jc|
j
7<||
jc|
j7<q6t|t�r6||j7}q6q6W||_||_|dkr�||7}n||_||}|dkr�d|_d|_d|_dS|dkr|j|d|d�n|j|d	|d
�dS(s
        The main duty of :meth:`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 ``\vbox`` 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.
        giRqRiNitOverfulli����t	Underfull(RrR!RfR<R[R=R>R`RtgetattrtGluet	glue_spect
stretch_ordertstretchtshrink_orderR^R�RtRuRyR|(R?RAR�RBRCR�t
total_stretchttotal_shrinkR�RR�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��sJ



 	
		
	
			(RRRSRTRR@RnR�(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR~�s	&tVlistcB s5eZdZddd�Zddee�d�ZRS(s#
    A vertical list of boxes.
    gRcC stj||�|j�dS(N(RpR@tvpack(R?RvRBR�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@scC sd}d}d}dgd}dgd}x"|jD]}	t|	t�r�|||	j7}|	j}t|	j�sMt|	dd�}
t||	j|
�}qMq6t|	t	�r||7}d}|	j
}||j7}||jc|j7<||j
c|j7<q6t|	t�r/|||	j7}d}q6t|	t�r6td��q6q6W||_||kr�|||7}||_n	||_|dkr�||7}n||_||}|dkr�d|_d|_d|_dS|dkr|j|d|d	�n|j|d
|d�dS(s6
        The main duty of :meth:`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 height is
        exactly *h*, while ``vpack(h, 'additional')`` yields a box
        whose height is the natural height plus *h*.  The default
        values produce a box with the natural width.
        giRqs2Internal mathtext error: Char node found in Vlist.RiNiR�i����R�(RrR!R`R=R>RR<R�R[R�R�R�R�R�R^R�RfR�RtRuRyR|(R?RBR�R�RARCR�R�R�R�RR�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�"sR

	
	
			
	
			(RRRSRTR@tfloatRR�(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�stRulecB s eZdZd�Zd�ZRS(s�
    A :class:`Rule` node stands for a solid black rectangle; it has
    *width*, *depth*, and *height* fields just as in an
    :class:`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 :class:`Hlist`; the
    height and depth are never running in a :class:`Vlist`.
    cC s&tj||||�|j|_dS(N(R`R@Rg(R?R<R=R>Rj((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@nscC s%|jj||||||�dS(N(RgRk(R?R�RjRARB((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRlrs(RRRSRTR@Rl(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�ds		tHrulecB seZdZdd�ZRS(s8
    Convenience class to create a horizontal rule.
    cC s[|dkr0|jj|j|j|j�}n|d}}tj|t|||�dS(Ng�?(	RWRgR�RcR|R�R�R@R(R?Rjt	thicknessR=R>((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@ys
	N(RRRSRTRWR@(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�ustVrulecB seZdZd�ZRS(s6
    Convenience class to create a vertical rule.
    cC s>|jj|j|j|j�}tj||tt|�dS(N(RgR�RcR|R�R�R@R(R?RjR�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�s	(RRRSRTR@(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��sR�cB s,eZdZed�Zd�Zd�ZRS(s
    Most of the information in this object is stored in the underlying
    :class:`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.)
    cC sztj|�d|_t|�r4tj|�}n$t|t�rL|}ntd��|rm|j�}n||_	dS(Ntnormals/glue_type must be a glue spec name or instance.(
RYR@tglue_subtypeRtGlueSpectfactoryR!t
ArgumentErrortcopyR�(R?t	glue_typeR�R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�s
		cC s\tj|�|jtkrX|jjdkrX|jj�|_|jjt9_qXndS(Ng(RYR^RZRaR�R<R�Rb(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR^�s

cC sJtj|�|jjdkrF|jj�|_|jjt9_ndS(Ng(RYR_R�R<R�Rc(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR_�s
(RRRSRTRR@R^R_(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��s
	R�cB sDeZdZdddddd�Zd�Zd�Zee�ZRS(s
    See :class:`Glue`.
    gicC s1||_||_||_||_||_dS(N(R<R�R�R^R�(R?R<R�R�R^R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�s
				cC s%t|j|j|j|j|j�S(N(R�R<R�R�R^R�(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��scC s|j|S(N(t_types(tclsR�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��s(RRRSRTR@R�R�tclassmethod(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��s
		itfilitfilltfillltneg_filtneg_fillt	neg_fillltemptyg�tsstFilcB seZd�ZRS(cC stj|d�dS(NR�(R�R@(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�s(RRRSR@(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��stFillcB seZd�ZRS(cC stj|d�dS(NR�(R�R@(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�s(RRRSR@(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��stFilllcB seZd�ZRS(cC stj|d�dS(NR�(R�R@(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�s(RRRSR@(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��stNegFilcB seZd�ZRS(cC stj|d�dS(NR�(R�R@(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�s(RRRSR@(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��stNegFillcB seZd�ZRS(cC stj|d�dS(NR�(R�R@(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�s(RRRSR@(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��stNegFilllcB seZd�ZRS(cC stj|d�dS(NR�(R�R@(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�s(RRRSR@(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��stSsGluecB seZd�ZRS(cC stj|d�dS(NR�(R�R@(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�s(RRRSR@(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��st	HCenteredcB seZdZd�ZRS(ss
    A convenience class to create an :class:`Hlist` whose contents are
    centered within its enclosing box.
    cC s.tj|t�g|t�gdt�dS(NR�(R~R@R�R(R?Rv((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�s#(RRRSRTR@(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��st	VCenteredcB seZdZd�ZRS(sr
    A convenience class to create a :class:`Vlist` whose contents are
    centered within its enclosing box.
    cC s(tj|t�g|t�g�dS(N(R�R@R�(R?Rv((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�s(RRRSRTR@(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��sR�cB s>eZdZdZdZd�Zd�Zd�Zd�ZRS(s�
    A :class:`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.
    icC stj|�||_dS(N(RYR@R<(R?R<((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@s
cC sd|jS(Nsk%.02f(R<(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�scC s2tj|�|jtkr.|jt9_ndS(N(RYR^RZRaR<Rb(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR^s
cC s tj|�|jt9_dS(N(RYR_R<Rc(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR_s
(	RRRSRTR=R>R@R�R^R_(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��s				tSubSuperClustercB seZdZd�ZRS(sR
    :class:`SubSuperCluster` is a sort of hack to get around that fact
    that this code do a two-pass parse like TeX.  This lets us store
    enough information in the hlist itself, namely the nucleus, sub-
    and super-script, such that if another script follows that needs
    to be attached, it can be reconfigured on the fly.
    cC s/d|_d|_d|_tj|g�dS(N(RWtnucleustsubtsuperR~R@(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@ s			(RRRSRTR@(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�stAutoHeightCharcB seZdZedd�ZRS(sG
    :class:`AutoHeightChar` 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.
    c
C s�|jj|j|�}|j�}||}xF|D]>\}	}
|	|_t|
|�}|j|j|kr5Pq5q5W|dkr�||j|j}n|j|9_t|
|�}||j}t	j
||g�||_dS(N(RgR�RcR�RfR=R>RWR|R~R@Rq(
R?RR=R>RjtalwaystfactorR9ttarget_totalR�R�tchartshift((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@.s 	
	
N(RRRSRTRRWR@(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�&st
AutoWidthCharcB seZdZeed�ZRS(s:
    :class:`AutoWidthChar` 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.
    cC s�|jj|j|�}|j�}x?|D]7\}}||_|||�}	|	j|kr+Pq+q+W||	j}
|j|
9_|||�}	tj||	g�|	j|_dS(N(RgR�RcR�R<R|R~R@(R?RR<RjR�t
char_classR9R�R�R�R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@Ks		
(RRRSRTRRfR@(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�CstShipcB s>eZdZd�Zd�Zee�Zd�Zd�ZRS(s�
    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
    :class:`Ship` is done by two mutually recursive routines,
    :meth:`hlist_out` and :meth:`vlist_out`, which traverse the
    :class:`Hlist` nodes and :class:`Vlist` nodes inside of horizontal
    and vertical boxes.  The global variables used in TeX to store
    state as it processes have become member variables here.
    cC sNd|_d|_d|_d|_||_||j|_|j|�dS(Nig(tmax_pushtcur_stcur_vtcur_htoff_hR=toff_vt	hlist_out(R?RFRGRO((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyt__call__gs					cC s$|dkrdS|dkr dS|S(Nge��ge��A((tvalue((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytclampps
cC s/d}d}|j}|j}|j}|j}|jd7_t|j|j�|_|j}x�|jD]�}	t	|	t
�r�|	j|j|j|j|j
�|j|	j7_qjt	|	t�r�|j|	j7_qjt	|	t�rvt|	j�dkr|j|	j7_q|j}
||	j|_t	|	t�rM|j|	�n
|j|	�|
|	j|_||_qjt	|	t�r=|	j}|	j}|	j}
t|�r�|j}nt|�r�|j}n|dkr+|
dkr+t||_|	j|j|j|j|j
|
|�t|_n|j|
7_qjt	|	t�rj|	j}|j|}
|dkr�|dkr�|j|kr�||j7}t|t |j!�|��}q�q�|j"|kr�||j#7}t|t |j!�|��}q�n|
|7}
|j|
7_qjqjW|jd8_dS(Nigi($RuRtR�R�R�R[R�R�RrR!RfRlR�R�R<R�RpR�RqR~R�t	vlist_outR`R=R>RtbaselineR�R�R�R�troundR�RsR�R^(R?ROtcur_gtcur_glueRuRtt	base_linet	left_edgeR�R�tedgetrule_heightt
rule_deptht
rule_widthR�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�xsl					$	
			


	

%
%
cC sd}d}|j}|j}|jd7_t|j|j�|_|j}|j|j8_|j}|j}x�|j	D]�}	t
|	t�r�|j|	j7_q|t
|	t
�ret|	j	�dkr�|j|	j|	j7_q|j|	j7_||	j|_|j}
|j|	_t
|	t�r<|j|	�n
|j|	�|
|	j|_||_q|t
|	t�r|	j}|	j}|	j}
t|
�r�|j}
n||7}|dkr|dkr|j|7_|	j|j|j|j|j|
|�qq|t
|	t�r�|	j}|j|}|dkr�|dkr�|j|kr�||j7}t|t|j�|��}q�q�|j |kr�||j!7}t|t|j�|��}q�n||7}|j|7_q|t
|	t"�r|t#d��q|q|W|jd8_dS(Nigis1Internal mathtext error: Char node found in vlist($RuRtR�R[R�R�R�R=R�RrR!R�R<RpR�R>RqR~R�R�R`RRlR�R�R�R�R�R�R�R�RsR�R^RfR�(R?ROR�R�RuRtR�ttop_edgeR�R�tsave_vR�R�R�R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��sj						
			

	

%
%
(RRRSRTR�R�tstaticmethodR�R�(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�]s					?c s)�fd�}t�}|j|�|S(s.
    Helper class to raise parser errors.
    c st||���dS(N(R(Rtlocttoks(tmsg(s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytraise_error�s(RtsetParseAction(R�R�R�((R�s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytError�s	
tParsercB s+eZdZedj��Zedj��Zedj��ZeeBeBZedj��Z	edj��Z
edj��Zedj��Zedj��Z
ed	j��Zed
j��Zedj��Zedj��Zd
�Zd�Zdefd��YZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zidd6dd6dd6dd 6d!d"6d#d$6dd%6Zd&�Zd'�Z d(�Z!d)�Z"idcded/fd06Z$d1�Z%id2d36d4d56d6d76d8d96d:d;6d<d=6d>d?6d@dA6dBdC6d<dD6d8dE6d:dF6d>dG6d@dH6d2dI6dJdK6dLdM6Z&edNj��Z'dO�Z(dP�Z)dQ�Z*dR�Z+dS�Z,e,Z-Z.dT�Z/dU�Z0dV�Z1dW�Z2dX�Z3dY�Z4dZ�Z5d[�Z6d\�Z7d]�Z8d^�Z9d_�Z:d`�Z;da�Z<db�Z=RS(fs
    This is the pyparsing-based parser for math expressions.  It
    actually parses full strings *containing* math expressions, in
    that raw text may also appear outside of pairs of ``$``.

    The grammar is based directly on that in TeX, though it cuts a few
    corners.
    s�
      + *
      \pm             \sqcap                   \rhd
      \mp             \sqcup                   \unlhd
      \times          \vee                     \unrhd
      \div            \wedge                   \oplus
      \ast            \setminus                \ominus
      \star           \wr                      \otimes
      \circ           \diamond                 \oslash
      \bullet         \bigtriangleup           \odot
      \cdot           \bigtriangledown         \bigcirc
      \cap            \triangleleft            \dagger
      \cup            \triangleright           \ddagger
      \uplus          \lhd                     \amalgsc
      = < > :
      \leq            \geq             \equiv           \models
      \prec           \succ            \sim             \perp
      \preceq         \succeq          \simeq           \mid
      \ll             \gg              \asymp           \parallel
      \subset         \supset          \approx          \bowtie
      \subseteq       \supseteq        \cong            \Join
      \sqsubset       \sqsupset        \neq             \smile
      \sqsubseteq     \sqsupseteq      \doteq           \frown
      \in             \ni              \propto
      \vdash          \dashv           \dotss�
      \leftarrow              \longleftarrow           \uparrow
      \Leftarrow              \Longleftarrow           \Uparrow
      \rightarrow             \longrightarrow          \downarrow
      \Rightarrow             \Longrightarrow          \Downarrow
      \leftrightarrow         \longleftrightarrow      \updownarrow
      \Leftrightarrow         \Longleftrightarrow      \Updownarrow
      \mapsto                 \longmapsto              \nearrow
      \hookleftarrow          \hookrightarrow          \searrow
      \leftharpoonup          \rightharpoonup          \swarrow
      \leftharpoondown        \rightharpoondown        \nwarrow
      \rightleftharpoons      \leadstos, ; . ! \ldotp \cdotps}
       \sum \prod \coprod \bigcap \bigcup \bigsqcup \bigvee
       \bigwedge \bigodot \bigotimes \bigoplus \biguplus
       slim liminf limsup sup max mins
\int \oints6rm cal it tt sf bf default bb frak circled scr regulars�
      arccos csc ker min arcsin deg lg Pr arctan det lim sec arg dim
      liminf sin cos exp limsup sinh cosh gcd ln sup cot hom log tan
      coth inf max tanhsb
      | \| / \backslash \uparrow \downarrow \updownarrow \Uparrow
      \Downarrow \Updownarrow .s( [ \{ < \lfloor \langle \lceils) ] \} > \rfloor \rangle \rceilc2	C st�}t�}t�}t�}t�}t�}t�}t�}t�}	t�}
t�}t�}t�}
t�}t�}t�}t�}t�}t�}t�}t�}t�}t�}t�}t�}t�}t�}t�}t�}t�}t�}t�} t�}!t�}"t�}#t�}$t�}%t�}&t�}'t�}(t�})t�}*t�}+t�},t�}-x9t�j�D](\}.}/|.dkr�|/j|.�q�q�W|
td�>|td�>|td�j�>|td�j�>|td�j�>|td�j�>|td�>|$t|jj	��>|t
td	��||
|td
�B>d}0|#td|0�>|+t|tt
j	���ttd
�j�t�B�>|*|#|+Bj�>|td�>|t
|�t|jj	��>|tt
|�t|jj	�t|j��|�>|
t
|�tt|j��>|'t|�|>|	|j�>|"t|t|,�|�>|t|t|,�|�>|t|'t|,�|	�>|t
|�tt|j��>|t
|�tg|jD]}1d|1^q'�>|tt
td��||td�B�>|&tt
td��||td�B�>|tt
td��||td�B�>|tt|j��>|tt|j��>|tt|j��>| tt|jtdg��dg�>|tt
td��|t||Bdd�||t|| Bdd�|||
||"||td�B�>|%tt
td��t|||dd�|td�B�>|tt
td��|td�B�>|-t|td��>|tt
td ��|t|!|-B�|td!�B�>|||*B|B|
B|B|B|&B|B|B|%B|B|B>|!|$|B|B|(B>|)td"d#g�>|(tt|�t|)|�t|�|t|�B|B�>|,|!|B|-B>|t
td$��||Btd%�Btt|!|B��t
td&��||Btd%�B>|t|,�>|t!d'dd(t"�>|td)�j�>||t||�t�>xEt�j�D]4\}.}/t#||.�r�|/j$t%||.��q�q�W||_&||_'dS(*NR?s[-+]?([0-9]+\.?[0-9]*|\.[0-9]+)s[-+]?[0-9]+R�R�R�R�s\s\hspacesExpected \hspace{n}u€-🿿u;([a-zA-Z0-9 +\-*/<>=:,.;!\?&'@()\[\]|%s])|(\\[%%${}\[\]_|])s	[^A-Za-z]s'+tmaths\fracsExpected \frac{num}{den}s	\stackrelsExpected \stackrel{num}{den}s\binomsExpected \binom{num}{den}s\}s\genfracR�ts<Expected \genfrac{ldelim}{rdelim}{rulesize}{style}{num}{den}s\sqrtsExpected \sqrt{value}s	\overlinesExpected \overline{value}s	[A-Za-z]*s
\operatornamesExpected \operatorname{value}t_t^s\leftsExpected a delimiters\rightt$tunquoteResultss(?:(?:\\[$])|[^$])*((RR3titemstsetNameRRtsuppressRt
_space_widthstkeysRR�RR)RtleaveWhitespaceRt_char_over_charsR	t_accent_maptlistt
_wide_accentst_function_namesR
R�RR
t
_fontnamest_ambi_delimt_left_delimt_right_delimR�RWRRthasattrR�R�t_expressiont_math_expression(2R?taccentt
ambi_delimt
apostrophet
auto_delimtbinomtbslashtc_over_ctcustomspacet	end_groupt
float_literalRctfractfunctiontgenfractgrouptint_literalt	latexfonttlbrackett
left_delimtlbracetmainR�tmath_stringtnon_mathtoperatornametoverlinet	placeabletrbracetrbrackettrequired_grouptright_delimtright_delim_safetsimpletsimple_groupt
single_symboltspacetsqrttstackreltstart_grouptsubsupert
subsuperopR5R}ttokentunknown_symbolR�R�t
unicode_rangeR�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@Ps�																																													
		!2!!2+O18
Y	cC s�|j|dd||�g|_i|_y|jj|�}WnLtk
r�}tdjd|jd|j	ddt
|�g���nXd	|_i|_|jj�|dS(
s�
        Parse expression *s* using the given *fonts_object* for
        output, at the given *fontsize* and *dpi*.

        Returns the parse tree of :class:`Node` instances.
        R�R�s
R�RkiR�iN(
tStatet_state_stackt_em_width_cacheR�tparseStringRR4RNtlinetcolumnR�RWt
resetCache(R?Rtfonts_objectR|R�Rqterr((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytparse	s!				
R!cB sAeZdZd�Zd�Zd�Zd�Zeee�ZRS(s�
        Stores the state of the parser.

        States are pushed and popped from a stack as necessary, and
        the "current" state is always at the top of the stack.
        cC s1||_||_||_||_||_dS(N(Rgt_fontR�R|R�(R?RgRcR�R|R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@9	s
				cC s(tj|j|j|j|j|j�S(N(R�R!RgRcR�R|R�(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�@	scC s|jS(N(R+(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�H	scC s%|dkr||_n||_dS(NR�R�R�(srmsitsbf(R�R+(R?R((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyt	_set_fontJ	s(	RRRSRTR@R�R�R,tpropertyRc(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR!2	s				cC s|jdS(s?
        Get the current :class:`State` of the parser.
        i����(R"(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyt	get_stateP	scC s|jj�dS(s8
        Pop a :class:`State` off of the stack.
        N(R"tpop(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyt	pop_stateV	scC s |jj|j�j��dS(sm
        Push a new :class:`State` onto the stack which is just a copy
        of the current state.
        N(R"R�R.R�(R?((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyt
push_state\	scC s
t|�gS(N(R~(R?RR�R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR
c	scC s|jj|ddd!�S(Niii����(R�R$(R?RR�R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRg	scC st|�}|j�|gS(N(R~R0(R?RR�R�thlist((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�k	s
cC sn|djdd�}g|D]}t||j��^q}t|�}|j�td|j�_|gS(Nis\$R�smathtext.default(treplaceRfR.R~R1R-Rc(R?RR�R�RtsymbolsR2((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRq	s(
cC s�|j�}|j|j|jf}|jj|�}|dkr�|jj|jt	dd|j|j�}|j
}||j|<nt||�S(Nsmathtext.defaultR�(R.RcR|R�R#R�RWRgR�R-R�R�(R?t
percentageRjR�R<R^((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyt_make_space{	s	"	g333333�?s\ g�������?s\,g�������?s\;g�������?s\quadg������	@s\qquadg������ٿs\!s\/cC s?t|�dkst�|j|d}|j|�}|gS(Nii(R�RhR�R6(R?RR�R�R�RO((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�	scC s|jt|d��gS(Ni(R6R�(R?RR�R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��	scC s�|d}yt||j��}Wn'tk
rLt||d|��nX||jkr�t|jd�||jd�gdt�gS||jkr�t||jd�gdt�gS|gS(NisUnknown symbol: %sg�������?R�(	RfR.R4Rt_spaced_symbolsR~R6Rt_punctuation_symbols(R?RR�R�RR�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR5�	s



cC s$|d}t||d|��dS(NisUnknown symbol: %s(R(R?RR�R�R((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�	s
R�tAg�?s\circg�?gtAAcC s�|d}|j�}|jj|j|j|j�}|jj|d�\}}}	|dkrpt	d��n|j
�}
|ddk	r�|d|
_n|
j|d9_t|d|
�}|j
�}|ddk	r�|d|_n|j|d9_t|d|�}
t
|j|
j�}t|g�}|j|d�t|
g�}|j|d�t|td||	�|g�S(NigsError parsing symboliitexactly(NNg(R.RgR�RcR|R�R�R�RWRR�RoRfR[R<R�R�R�Rd(R?RR�R�R�RjR�t
under_desct	over_descRt
over_statetovertunder_statetunderR<t
over_centeredtunder_centered((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��	s4
	s\circumflexaccentthats\combiningbrevetbreves\combiningoverlinetbars\combininggraveaccenttgraves\combiningacuteaccenttacutes\combiningdiaeresistddots\combiningtildettildes\combiningdotabovetdots\combiningrightarrowabovetvect"t`t't~t.R�s\rightarrowtoverrightarrows
\leftarrowt
overleftarrowswidehat widetilde widebarc	C st|�dkst�|j�}|jj|j|j|j�}t|d�dkrjtd��n|d\}}||j	kr�t
d||j|dt�}nt|j
||�}t|g�}|j|jd�t|td|d	�t|g�g�S(
NiiisError parsing accents\R�R;gg@(R�RhR.RgR�RcR|R�RR�R�R<RoR�R�R�R�RdR~(	R?RR�R�RjR�R�R�tcentered((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR��	s"	cC sf|j�|j�}d|_tg|dD]}t||�^q-�}|j�|d|_|S(NR�i(R1R.RcR~RfR0t
function_name(R?RR�R�RjRR2((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR
s
	,

cC sq|j�|j�}d|_x7|dD]+}t|t�r*d|_|j�q*q*W|j�t|d�S(NR�i(R1R.RcR!RfRiR0R~(R?RR�R�RjR((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR

s
		
cC s4|j�t|�r0|dd|j�_ngS(Nii(R1R�R.Rc(R?RR�R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR
s
cC st|d�}|gS(Ni(R~(R?RR�R�tgrp((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR#
scC s|j�gS(N(R0(R?RR�R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�(
s
cC s5t|�dkst�|d}||j�_gS(Nii(R�RhR.Rc(R?RR�R�R((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRc,
s
cC sQt|t�r|j|jkSt|t�rMt|d�rM|j|jkStS(NRU(	R!RfRt_overunder_symbolsR~R�RUt_overunder_functionsR(R?R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytis_overunder2
s
cC s#t|t�r|j|jkStS(N(R!RfRt_dropsub_symbolsR(R?R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyt
is_dropsub9
scC st|t�r|j�StS(N(R!RfRmR(R?R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRm>
s
cC s)t|�dkst�d}d}d}d}g}xM|dD]A}	t|	t�ru|	dkru|t|	�7}qA|j|	�qAW|}t|�dkr�|s�t�td�}nGt|�dkr�|s�|dS|d}nt|�dkr.|\}
}td�}|
dkr%|}q|}n�t|�dkrm|\}}
}|
dkrd|}q|}n�t|�dkr�|\}}}
}}||kr�|dkr�td	��q�td
��n|dkr�|
}|}q|
}|}ntd��|j�}|j	j
|j|j|j
�}|j	j|j|j|j
�}|r�|dkrotg�}nx9t|�D](}|jj|j||dg��q|Wn|j|�r"g}d}|j}|dk	r�|j�t||j�}n|dk	r%|j�t||j�}n|dk	rpt|g�}|j|d
�|j|t|d�g�nt|g�}|j|d
�|j|�|dk	r�t|g�}|j|d
�|jt|d�|g�|j}nt|�}||j|_t|g�}|gS|jt|}|j |�rV|jt|}n
t|}|dkr�|j�t|g�}t|t!�}|jt"|d�d}t||�}||_nF|j�t|tt#|�g�}t$|}t||�}|jt"|�d}t||�}|dkrH||_n�|j�t|g�}t|t!|�}d|||j|j|}|dkr�||7}||7}n|j%|�r�t&|||_nt|t||j|j|�|g�}||_t||g�}|gS(NiiR�R�giiisDouble subscriptsDouble superscriptsOSubscript/superscript sequence is too long. Use braces { } to remove ambiguity.s\primeR;g@g@g@g@(R�R�('R�RhRWR!R�R�ReRR.RgR�RcR|R�R�R~R7RrtextendR5RYR<R^R[R�R�R�R=R�R>RqtSUBDROPR[tSUB1tabstSCRIPT_SPACEtSUP1RmtDELTA(R?RR�R�R�R�R�tnapostrophestnew_toksttoktopR]top1tnext1top2tnext2Rjtrule_thicknessR�R�tvlistR�R<R2Rqtshift_upt
shift_downR�tclrRj((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRC
s�
									)	

 








	cC s�|j�}|jj|j|j|j�}t|�}|j�|j�t|g�}	t|g�}
t	|j
|j
�}|	j|d�|
j|d�t|	t
d|d�t||�t
d|d�|
g�}|jj|jtdd|j|j�}
|
j|
j|
jd|d}||_t|t|d�g�g}|s`|r�|dkrud	}n|dkr�d	}n|j|||�S|S(
NR;ig@smathtext.defaultt=ig@R�RQ(R.RgR�RcR|R�R�R^R�R[R<R�R�RdR�R�R-R=R`RbRqR~Ret_auto_sized_delimiter(R?tldelimtrdelimtruletstyleR�tdenRjR�tcnumtcdenR<RlR^R�Rq((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyt_genfrac�
s>	

	
			cC sKt|�dkst�t|d�dks4t�|jt|d��S(Niii(R�RhRyttuple(R?RR�R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�
scC s�t|�dkst�t|d�dks4t�|j�}|jj|j|j|j�}|d\}}|jdd|d||�S(NiiiR�(	R�RhR.RgR�RcR|R�Ry(R?RR�R�RjR�R�Rv((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�
s	cC s`t|�dkst�t|d�dks4t�|d\}}|jdddd||�S(NiiiR�g(R�RhRy(R?RR�R�R�Rv((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR
scC s`t|�dkst�t|d�dks4t�|d\}}|jdddd||�S(NiiiR�R�gR�(R�RhRy(R?RR�R�R�Rv((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�scC s�|d\}}|j�}|jj|j|j|j�}|j|j|d}|j|j}	t	d||	|dt
�}
|
j|
j}|
j|
j}	tt|d�|t|d�g�}t
t|�t�|g�}|j||j|jdd|	�|dkr4t|
jd	d
d
�}n<tg|D]}
t|
|�^q>�}|j�|j�t
t|g�g�}|d|_t|t|
jd	�|
|g�}|gS(
Nig@s	\__sqrt__R�g@gY@g(@R;g�?gg333333�?g��@(R.RgR�RcR|R�R=RqR>R�RR~ReR�R�R�R�RWR`R<RfR^R�(R?RR�R�troottbodyRjR�R=R>tchecktpadded_bodyt	rightsideR�t
root_vlistR2((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRs:	
(

cC s�t|�dkst�t|d�dks4t�|dd}|j�}|jj|j|j|j�}|j|j	|d}|j
|j	}tt|�t
�t|g�g�}	|	j||j|jdd|�t|	g�}
|
gS(Niig@gY@g(@R;g��@(R�RhR.RgR�RcR|R�R=RqR>R�R�R�R~R�(R?RR�R�R|RjR�R=R>RR2((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyREs	
cC s�|j�}t|�retg|D]}|j^q"�}tg|D]}|j^qD�}d}nd}d}d}g}	|dkr�|	jt||||d|��n|	j|�|dkr�|	jt||||d|��nt	|	�}
|
S(Nig�?RQR�(
R.R�R[R=R>RWR�R�R\R~(R?tfronttmiddletbackRjR�R=R>R�tpartsR2((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyRq^s ""	%
%cC s(|\}}}|j||j�|�S(N(RqtasList(R?RR�R�R�R�R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�rs(srmR9g�?N(Ns\circg�?(>RRRSRTR�Rt_binary_operatorst_relation_symbolst_arrow_symbolsR7R8RWRXRZR�R�R�R�R�R@R*tobjectR!R.R0R1R
RR�RR6R�RR�R5RRWR�R�R�R�R�RR
RRRRR�RcRYR[RmRRyRRRR�RRRqR�(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�s�
	�								
	

					%
		
			
						�	'					-		tMathTextParsercB s�eZdZied6ed6ed6ed6ed6e	d6e
d6ed6Zied6e
d	6ed
6ed6Zd�Zd
dd�Zddd�Zdddd�Zdddd�Zddd�ZRS(tbitmaptaggRtpdftsvgRMtcairotmacosxtcmtstixtstixsanstcustomcC s"|j�|_td�|_dS(sI
        Create a MathTextParser for the given backend *output*.
        i2N(R�t_outputRt_cache(R?toutput((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR@�siHcC sZ|dkrt�}n||t|�f}|jj|�}|dk	rO|S|jdkrwtdrwt|�}n_|j|j�}td}|j	j|j
��}	|	dk	r�|	||�}ntd��|j�}
|j
dkrt�|j_
n|j
j|||
|�}|j|j|j|j�|j|�}||j|<|S(s�
        Parse the given math expression *s* at the given *dpi*.  If
        *prop* is provided, it is a
        :class:`~matplotlib.font_manager.FontProperties` object
        specifying the "default" font to use in the math expression,
        used for all non-math text.

        The results are cached, so multiple calls to :meth:`parse`
        with the same expression should be fast.
        Rs	ps.useafmsmathtext.fontsetsEmathtext.fontset must be either 'cm', 'stix', 'stixsans', or 'custom'N(RWR&thashR�R�R�R-R<t_backend_mappingt_font_type_mappingR�R4tget_size_in_pointst_parserR�R\R*RDR<R=R>RP(R?RR�RtcacheKeyRqRgtbackendtfontsett
fontset_classR|RO((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR*�s.

	
ixicC s[|jdkst�td|�}|j|d|d|�\}}|j�}||fS(s�
        *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

        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.
        R�RZR�R(R�RhR&R*tas_array(R?ttexstrR�R|RtftimageR>R�((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytto_mask�s
!tblackcC s|j|d|d|�\}}tjj|�\}}}	tj|jd|jddfdtj�}
td|�|
dd�dd�df<td|�|
dd�dd�df<td|	�|
dd�dd�d	f<||
dd�dd�d
f<|
|fS(s�
        *texstr*
            A valid mathtext string, eg r'IQ: $\sigma_i=15$'

        *color*
            Any matplotlib color argument

        *dpi*
            The dots-per-inch to render the text

        *fontsize*
            The font size in points

        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.
        R�R|iiitdtypei�Nii(	R�tmcolorstcolorConvertertto_rgbtnptzerostshapetuint8Rg(R?R�tcolorR�R|R�R>RRRtRGBA((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytto_rgba�s!/)))cC sY|j|d|d|d|�\}}|j\}}	}
tj|j�|	||�|S(s8
        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

        Returns the offset of the baseline from the bottom of the
        image in pixels.
        R�R�R|(R�R�t_pngt	write_pngttostring(R?R�R�R�R�R|trgbaR>tnumrowstnumcolsttmp((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pytto_pngs'cC sI|jdkst�td|�}|j|d|d|�\}}|S(s+
        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
        R�RZR�R(R�RhR&R*(R?R�R�R|RR�R>((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyt	get_depth s!N(RRRSRWR�RuRURwR�R�R�R�R�R�R�R;RR�R@R*R�R�R�R�(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyR�}s*

	/ c
C s�ddlm}ddlm}|d
kr8t�}ntd�}|j|ddd|�\}}	}
}}|jd|d	|	d	f�}|j	d
|
|	|d|�|j
|�|j|d|d|�|
S(s�
    Given a math expression, renders it in a closely-clipped bounding
    box to an image file.

    *s*
       A math expression.  The math portion should be enclosed in
       dollar signs.

    *filename_or_obj*
       A filepath or writable file-like object to write the image data
       to.

    *prop*
       If provided, a FontProperties() object describing the size and
       style of the text.

    *dpi*
       Override the output dpi, otherwise use the default associated
       with the output format.

    *format*
       The output format, eg. 'svg', 'pdf', 'ps' or 'png'.  If not
       provided, will be deduced from the filename.
    i����(tfigure(RrRMR�iHRtfigsizegR@itfontpropertiestformatN(t
matplotlibR�RsRrRWR&R�R*tFigurettexttFigureCanvasAggtsavefig(
Rtfilename_or_objRR�R�R�RrtparserR<R=R>R�tfig((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyt
math_to_image3s* 
(�RTt
__future__RRRLtsystversion_infotioRt	cStringIOR�RR�t	NameErrortsetsRRtwarningsRtnumpyRRR�t	pyparsingRR	R
RRR
RRRRRRRRRRRRRt
enablePackrattmatplotlib.afmRtmatplotlib.cbookRRRRtmatplotlib.ft2fontR R!R"R#R$tmatplotlib.font_managerR%R&tmatplotlib._mathtext_dataR'R(R)R*R+R�R,R-tmatplotlib.colorstcolorsR�tmatplotlib._pngR�R7R:R�R;RURuRwR�R�R�R�R�R�R�RR�R;R<RbRcRaR`R]RaR^RbtWarningRRYR`RdReRfRoRpR~R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�RmR�R�R�RWR�(((s9/usr/lib64/python2.7/site-packages/matplotlib/mathtext.pyt<module>s�
|
"((			6J(�vwnt�
!N=oJ	!	�		����

Anon7 - 2021