/opt/alt/python27/lib64/python2.7/site-packages/matplotlib
NameSizeModeActions
backends/-0755rm
delaunay/-0755rm
mpl-data/-0755rm
numerix/-0755rm
projections/-0755rm
sphinxext/-0755rm
afm.py150890644editdlrm
afm.pyc173880644editdlrm
afm.pyo173880644editdlrm
artist.py356230644editdlrm
artist.pyc414310644editdlrm
artist.pyo414310644editdlrm
axes.py2800890644editdlrm
axes.pyc2525680644editdlrm
axes.pyo2514560644editdlrm
axis.py573540644editdlrm
axis.pyc608580644editdlrm
axis.pyo605510644editdlrm
backend_bases.py723180644editdlrm
backend_bases.pyc799690644editdlrm
backend_bases.pyo798790644editdlrm
bezier.py149170644editdlrm
bezier.pyc138120644editdlrm
bezier.pyo138120644editdlrm
blocking_input.py136900644editdlrm
blocking_input.pyc147620644editdlrm
blocking_input.pyo144440644editdlrm
cbook.py427560644editdlrm
cbook.pyc586920644editdlrm
cbook.pyo584660644editdlrm
cm.py80980644editdlrm
cm.pyc100320644editdlrm
cm.pyo100320644editdlrm
collections.py407840644editdlrm
collections.pyc451110644editdlrm
collections.pyo451110644editdlrm
colorbar.py274560644editdlrm
colorbar.pyc258350644editdlrm
colorbar.pyo258350644editdlrm
colors.py391100644editdlrm
colors.pyc406900644editdlrm
colors.pyo406900644editdlrm
contour.py428950644editdlrm
contour.pyc364630644editdlrm
contour.pyo363010644editdlrm
dates.py360070755editdlrm
dates.pyc411350644editdlrm
dates.pyo410710644editdlrm
dviread.py320330644editdlrm
dviread.pyc354880644editdlrm
dviread.pyo353450644editdlrm
figure.py412640644editdlrm
figure.pyc437060644editdlrm
figure.pyo435750644editdlrm
finance.py205820644editdlrm
finance.pyc186750644editdlrm
finance.pyo185150644editdlrm
fontconfig_pattern.py64290644editdlrm
fontconfig_pattern.pyc67100644editdlrm
fontconfig_pattern.pyo67100644editdlrm
font_manager.py426530644editdlrm
font_manager.pyc412750644editdlrm
font_manager.pyo412750644editdlrm
ft2font.so3061680755editdlrm
hatch.py65640644editdlrm
hatch.pyc94840644editdlrm
hatch.pyo94840644editdlrm
image.py315400644editdlrm
image.pyc337830644editdlrm
image.pyo337370644editdlrm
legend.py323020644editdlrm
legend.pyc238760644editdlrm
legend.pyo237030644editdlrm
lines.py546850644editdlrm
lines.pyc579910644editdlrm
lines.pyo578860644editdlrm
mathtext.py1020090644editdlrm
mathtext.pyc1060700644editdlrm
mathtext.pyo1056820644editdlrm
mlab.py942940644editdlrm
mlab.pyc1019150644editdlrm
mlab.pyo1017350644editdlrm
mpl.py7850644editdlrm
mpl.pyc11890644editdlrm
mpl.pyo11890644editdlrm
nxutils.so97040755editdlrm
offsetbox.py298070644editdlrm
offsetbox.pyc348250644editdlrm
offsetbox.pyo347700644editdlrm
patches.py1284850644editdlrm
patches.pyc1337360644editdlrm
patches.pyo1335980644editdlrm
path.py217650644editdlrm
path.pyc214990644editdlrm
path.pyo212790644editdlrm
pylab.py109810644editdlrm
pylab.pyc124380644editdlrm
pylab.pyo124380644editdlrm
pyparsing.py1439240644editdlrm
pyparsing.pyc1511830644editdlrm
pyparsing.pyo1511830644editdlrm
pyplot.py824680644editdlrm
pyplot.pyc819820644editdlrm
pyplot.pyo819820644editdlrm
quiver.py375400644editdlrm
quiver.pyc341520644editdlrm
quiver.pyo341520644editdlrm
rcsetup.py234340644editdlrm
rcsetup.pyc215220644editdlrm
rcsetup.pyo213520644editdlrm
scale.py142330644editdlrm
scale.pyc202540644editdlrm
scale.pyo202540644editdlrm
spines.py126840644editdlrm
spines.pyc118830644editdlrm
spines.pyo114560644editdlrm
table.py168280644editdlrm
table.pyc173730644editdlrm
table.pyo172220644editdlrm
texmanager.py224640644editdlrm
texmanager.pyc202090644editdlrm
texmanager.pyo202090644editdlrm
text.py598220644editdlrm
text.pyc606960644editdlrm
text.pyo606960644editdlrm
ticker.py404280644editdlrm
ticker.pyc521640644editdlrm
ticker.pyo520280644editdlrm
tight_bbox.py36550644editdlrm
tight_bbox.pyc41570644editdlrm
tight_bbox.pyo41570644editdlrm
transforms.py753870644editdlrm
transforms.pyc924320644editdlrm
transforms.pyo915230644editdlrm
ttconv.so654880755editdlrm
type1font.py115370644editdlrm
type1font.pyc114900644editdlrm
type1font.pyo114900644editdlrm
units.py49760644editdlrm
units.pyc59180644editdlrm
units.pyo59180644editdlrm
widgets.py408330644editdlrm
widgets.pyc436080644editdlrm
widgets.pyo434220644editdlrm
windowing.py4540644editdlrm
windowing.pyc13610644editdlrm
windowing.pyo13610644editdlrm
_cm.py3704140644editdlrm
_cm.pyc1030550644editdlrm
_cm.pyo1030550644editdlrm
_cntr.so209600755editdlrm
_delaunay.so611840755editdlrm
_image.so2828560755editdlrm
_mathtext_data.py579900644editdlrm
_mathtext_data.pyc638000644editdlrm
_mathtext_data.pyo638000644editdlrm
_path.so2803120755editdlrm
_png.so1565040755editdlrm
_pylab_helpers.py27150644editdlrm
_pylab_helpers.pyc38380644editdlrm
_pylab_helpers.pyo38380644editdlrm
__init__.py289720644editdlrm
__init__.pyc294350644editdlrm
__init__.pyo293810644editdlrm
Edit: /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/texmanager.pyc (20209B)
Ñò „ñ™Jc@sLdZddkZddkZddkZddkZddkZddkZddklZl Z l Z yddk l Z Wn#e j oddk l Z nXddkZddkZddkZddklZddklZddkiZddkZeZeiidƒo dZnd Zd „Zd d d „ƒYZ dS(s‰ This module supports embedded TeX expressions in matplotlib via dvipng and dvips for the raster and postscript backends. The tex and dvipng/dvips information is cached in ~/.matplotlib/tex.cache for reuse between sessions Requirements: * latex * \*Agg backends: dvipng * PS backend: latex w/ psfrag, dvips, and Ghostscript 8.51 (older versions do not work properly) Backends: * \*Agg * PS * PDF For raster output, you can get RGBA numpy arrays from TeX expressions as follows:: texmanager = TexManager() s = '\TeX\ is Number $\displaystyle\sum_{n=1}^\infty\frac{-e^{i\pi}}{2^n}$!' Z = self.texmanager.get_rgba(s, size=12, dpi=80, rgb=(1,0,0)) To enable tex rendering of all text in your matplotlib figure, set text.usetex in your matplotlibrc file (http://matplotlib.sf.net/matplotlibrc) or include these two lines in your script:: from matplotlib import rc rc('text', usetex=True) iÿÿÿÿN(tPopentPIPEtSTDOUT(tmd5(trcParams(tread_pngtwint&t;c CsÇtddtdtdtdtdtidjƒ}|i|i}}xn|D]f}|idƒoP|i ƒd }t i i d |d ƒt ii|ƒ}|t iid ƒjSqMWtd ƒ‚dS(Nsdvipng -versiontshelltstdintstdouttstderrt close_fdstwin32sdvipng iÿÿÿÿsFound dvipng version %sthelpfuls1.6sCould not obtain dvipng version(RtTrueRRtsystplatformR R t startswithtsplittmpltverbosetreportt distutilstversiont LooseVersiont RuntimeError(tpR R tlineR((sH/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/texmanager.pytdvipng_hack_alpha9st TexManagercBsweZdZeiƒZed?joeiƒZnei i edƒZ ei ƒZ ei i e dƒZei ie ƒo+eide efIJeie eƒnei ieƒpeieƒneƒZhZhZhZdZd@ZdAZdBZdCZd ZdDZ hdEd6dFd6dGd6dHd6dId6dJd 6dKd6dLd 6dMd 6dNd!6dOd$6dPd'6dQd6dRd(6dSd)6dTd*6Z!d?Z"dUe#gZ$dVe D]Z%e$d-e%q£[$ƒZ&d.„Z'd?d/„Z(d0„Z)d1„Z*d2„Z+d3„Z,d4„Z-e.i/d5ƒZ0d6„Z1d7„Z2d8„Z3d9„Z4d:„Z5d;„Z6d?d?d<„Z7d?d?dWd=„Z8d?d>„Z9RS(XsZ Convert strings to dvi files using TeX, caching the results to a working dir s .tex.caches tex.cachesmWARNING: found a TeX cache dir in the deprecated location "%s". Moving it to the new default location "%s".itcmrttcmsstcmtttpzcs\usepackage{chancery}tserifs sans-seriftcursivet monospacetpncs\renewcommand{\rmdefault}{pnc}snew century schoolbooktpbks\renewcommand{\rmdefault}{pbk}tbookmantptms\usepackage{mathptmx}ttimestppls\usepackage{mathpazo}tpalatinos zapf chancerytpchs\usepackage{charter}tchartertphvs\usepackage{helvet}t helveticatpags\usepackage{avant}s avant gardetpcrs\usepackage{courier}tcourierscomputer modern romanscomputer modern sans serifscomputer modern typewriterstext.latex.preambletfamilysfont.c Cs^tii|iƒpti|iƒntdiƒ}||ijo ||_n!t i i d|dƒd|_|ig}x*g}|iD]}|||i ddƒfq”~D]ò\}}xÉtd|D]‹}|iƒ|i jo_|i |iƒ}t|||i |iƒƒto#d|||i |iƒfGHnPqÕto d GHqÕqÕWt i i d |dƒt|||i |ƒ|it||ƒd ƒqºWd i|ƒ|_|id |id |id g}|idjo|i|id ƒnxd|jo|idƒqWdi|ƒ}did|dgƒ|_dS(Ns font.familysOThe %s font family is not compatible with LaTeX. serif will be used by default.RR%t-t_sfont.sfamily: %s, font: %s, info: %ss%$s font is not compatible with usetexsQNo LaTeX-compatible font found for the %s font family in rcParams. Using default.iR!iR&s\usepackage{type1cm}s s\usepackage{textcomp}(tostpathtisdirttexcachetmkdirRtlowert font_familiest font_familyRRRtreplacet font_infotsetattrtDEBUGtappendtgetattrtjoint _fontconfigR%t sans_serifR'R&tremovet_font_preamble( tselftfft fontconfigt_[1]R@tfont_family_attrtfontt found_fonttcmd((sH/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/texmanager.pyt__init__ƒsH   4   $  cCsrdi||iƒd||iƒt|pdƒgƒ}t|ƒidƒ}tii|it |ƒi ƒƒS(sU returns a filename based on a hash of the string, fontsize, and dpi R!s%fsutf-8( RGtget_font_configtget_custom_preambletstrtunicodetencodeR9R:R<Rt hexdigest(RLttextfontsizetdpitstbytes((sH/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/texmanager.pyt get_basefile¬s"c Cs8|idjo7tg}|iD]}||dfq!~ƒ|_ng}|iD])}t||i|jo ||qUqU~}|oŒto dG|GHnxP|D]H}to!d||i|t|fGHntit|ƒ|i| %-10ssDEBUG RE-INIT old fontconfig:sDEBUG fontconfig:N( t _rc_cachetNonetdictt_rc_cache_keysRRDtcopytdeepcopyRHRT(RLROtkt_[2]tpartchanged((sH/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/texmanager.pyRU¶s&7% cCs|iS(sU returns a string containing font configuration for the tex preamble (RK(RL((sH/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/texmanager.pytget_font_preambleÉscCsditdƒS(s>returns a string containing user additions to the tex preambles stext.latex.preamble(RGR(RL((sH/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/texmanager.pyRVÏscGsTtidjo$dtii|iƒdg}ng}|i|ƒdi|ƒS(s– On windows, changing directories can be complicated by the presence of multiple drives. get_shell_cmd deals with this issue. Rs%sis && (RRR9R:t splitdriveR<textendRG(RLtargstcommand((sH/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/texmanager.pyt_get_shell_cmdÓs $ c Cs|i||ƒ}d|}t|dƒ}|iƒ}hdd6dd6i|idƒ}||}tdo d }nd }d |i||||d |f} tdo|i| id ƒƒn@y|i| ƒWn+t j o} t i i ddƒ‚nX|i ƒ|S(su Generate a tex file to render the tex string at a specific font size returns the file name s%s.textws{\sffamily %s}s sans-serifs{\ttfamily %s}R's{\rmfamily %s}stext.latex.unicodes-\usepackage{ucs} \usepackage[utf8x]{inputenc}R!s¸\documentclass{article} %s %s %s \usepackage[papersize={72in,72in}, body={70in,70in}, margin={1in,1in}]{geometry} \pagestyle{empty} \begin{document} \fontsize{%f}{%f}%s \end{document} gô?tutf8sbYou are using unicode and latex, but have not enabled the matplotlib 'text.latex.unicode' rcParam.R(R`tfileRVtgetR@RRKtwriteRYtUnicodeEncodeErrorRRRtclose( RLR[R\tbasefilettexfiletfhtcustom_preambletfontcmdtunicode_preambleR^terr((sH/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/texmanager.pytmake_texßs.           s3MatplotlibBox:\(([\d.]+)pt\+([\d.]+)pt\)x([\d.]+)ptc Cs|i||ƒ}d|}t|dƒ}|iƒ}hdd6dd6i|idƒ}||}tdo d }nd }d |i||||d |f} tdo|i| id ƒƒn@y|i| ƒWn+t j o} t i i ddƒ‚nX|i ƒ|S(sá Generate a tex file to render the tex string at a specific font size. It uses the preview.sty to determin the dimension (width, height, descent) of the output. returns the file name s%s.texRqs{\sffamily %s}s sans-serifs{\ttfamily %s}R's{\rmfamily %s}stext.latex.unicodes-\usepackage{ucs} \usepackage[utf8x]{inputenc}R!s±\documentclass{article} %s %s %s \usepackage[active,showbox,tightpage]{preview} %%\usepackage[papersize={72in,72in}, body={70in,70in}, margin={1in,1in}]{geometry} %% we override the default showbox as it is treated as an error and makes %% the exit status not zero \def\showbox#1{\immediate\write16{MatplotlibBox:(\the\ht#1+\the\dp#1)x\the\wd#1}} \begin{document} \begin{preview} {\fontsize{%f}{%f}%s} \end{preview} \end{document} gô?RrsbYou are using unicode and latex, but have not enabled the matplotlib 'text.latex.unicode' rcParam.R(R`RsRVRtR@RRKRuRYRvRRRRw( RLR[R\RxRyRzR{R|R}R^R~((sH/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/texmanager.pytmake_tex_previews.          c Csîtdo|i||ƒS|i||ƒ}d|}tptii|ƒ o—|i||ƒ}|d}|id|i dtii |ƒd|fƒ}t i i |dƒti|ƒ}y&t|ƒ} | iƒ} | iƒWntj o d} nXyti|ƒt} Wntj o t} nX|p| otd t|ƒ| ƒ‚nt i i | dƒxnti|d ƒD]U} | id ƒoq| id ƒoqyti| ƒWqtj oqXqWn|S( sm generates a dvi file containing latex's layout of tex string returns the file name stext.latex.previews%s.dvis.outputscd "%s"s(latex -interaction=nonstopmode %s > "%s"iÿÿÿÿtdebugs No latex error report available.seLaTeX was not able to process the following string: %s Here is the full report generated by LaTeX: t*tdviR[(Rtmake_dvi_previewR`RDR9R:texistsRRpR<RRRRtsystemRstreadRwtIOErrortstatRtOSErrortFalseRtreprtglobtendswithRJ( RLR[R\RxtdvifileRytoutfileRot exit_statusRzRR…tfname((sH/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/texmanager.pytmake_dviPsL           c Cs|i||ƒ}d|}d|}tp(tii|ƒ ptii|ƒ o«|i||ƒ}|d}|id|idtii|ƒd|fƒ}t i i |dƒti |ƒ} y&t |ƒ} | iƒ} | iƒWntj o d} nX| otd t|ƒ| ƒ‚nt i i | dƒtii| ƒ} t|d d ƒid i| iƒƒƒx‚ti|d ƒD]i} | idƒoq| idƒoq| idƒoqyti| ƒWqtj oqXqWn|S(sì generates a dvi file containing latex's layout of tex string. It calls make_tex_preview() method and store the size information (width, height, descent) in a separte file. returns the file name s%s.dvis %s.baselines.outputscd "%s"s(latex -interaction=nonstopmode %s > "%s"iÿÿÿÿRs No latex error report available.seLaTeX was not able to process the following string: %s Here is the full report generated by LaTeX: s .baselineRqt R‚RƒR[tbaseline(R`RDR9R:R…R€RpR<RRRRR†RsR‡RwRˆRRŒRt_re_vboxtsearchtopenRuRGtgroupsRRŽRJRŠ(RLR[R\RxRt baselinefileRyRRoR‘RzRtmR’((sH/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/texmanager.pyR„sJ       ) c Csd|i|||ƒ}d|}tptii|ƒ o&|i||ƒ}|d}|id|id|tii|ƒdtii|ƒd|fƒ}t i i |dƒti |ƒ} y&t |ƒ} | iƒ} | iƒWntj o d} nX| otd|| ƒ‚nt i i | dƒyti|ƒWq`tj oq`Xn|S( so generates a png file containing latex's rendering of tex string returns the filename s%s.pngs.outputscd "%s"sQdvipng -bg Transparent -D %s -T tight -o "%s" "%s" > "%s"iÿÿÿÿRs!No dvipng error report available.scdvipng was not able to process the flowing file: %s Here is the full report generated by dvipng: (R`RDR9R:R…R“RpR<RRRRR†RsR‡RwRˆRRJRŠ( RLR[R\R]RxtpngfileRRRoR‘RzR((sH/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/texmanager.pytmake_png¯s2       c Cs$|i||ƒ}d|}tptii|ƒ oé|i||ƒ}|d}|id|idtii|ƒdtii|ƒd|fƒ}t i i |dƒti |ƒ}t |ƒ} |otd|| iƒƒ‚nt i i | iƒdƒ| iƒti|ƒn|S(sw generates a postscript file containing latex's rendering of tex string returns the file name s%s.epsfs.outputscd "%s"sdvips -q -E -o "%s" "%s" > "%s"iÿÿÿÿRscdvipng was not able to process the flowing file: %s Here is the full report generated by dvipng: (R`RDR9R:R…R“RpR<RRRRR†RsRR‡RwRJ( RLR[R\RxtpsfileRRRoR‘Rz((sH/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/texmanager.pytmake_psÒs&     cCsƒ|i||ƒ}t|ƒ}xN|D]F}|idƒo0g}|iƒdD]}|t|ƒqP~Sq%Wtd|ƒ‚dS(sw returns a list containing the postscript bounding box for latex's rendering of the tex string s%%BoundingBox:isCould not parse %sN(RŸRsRRtintR(RLR[R\RžtpsRROtval((sH/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/texmanager.pyt get_ps_bboxïs 4c Csô||iƒ||f}|ii|ƒ}|djo¹|i|||ƒ}ttii|i |ƒƒ}t ddj ot d}n |i }|o'd|dd…dd…df}n |dd…dd…df}||i|"s&H