/usr/lib64/python2.6/site-packages/matplotlib
NameSizeModeActions
backends/-0755rm
delaunay/-0755rm
mpl-data/-0755rm
numerix/-0755rm
projections/-0755rm
sphinxext/-0755rm
afm.py150890644editdlrm
afm.pyc169590644editdlrm
afm.pyo169590644editdlrm
artist.py356230644editdlrm
artist.pyc403260644editdlrm
artist.pyo403260644editdlrm
axes.py2800890644editdlrm
axes.pyc2493960644editdlrm
axes.pyo2482840644editdlrm
axis.py573540644editdlrm
axis.pyc589730644editdlrm
axis.pyo586660644editdlrm
backend_bases.py723180644editdlrm
backend_bases.pyc779670644editdlrm
backend_bases.pyo778770644editdlrm
bezier.py149170644editdlrm
bezier.pyc135260644editdlrm
bezier.pyo135260644editdlrm
blocking_input.py136900644editdlrm
blocking_input.pyc143460644editdlrm
blocking_input.pyo140280644editdlrm
cbook.py427560644editdlrm
cbook.pyc567550644editdlrm
cbook.pyo565290644editdlrm
cm.py80980644editdlrm
cm.pyc97720644editdlrm
cm.pyo97720644editdlrm
collections.py407840644editdlrm
collections.pyc440060644editdlrm
collections.pyo440060644editdlrm
colorbar.py274560644editdlrm
colorbar.pyc254970644editdlrm
colorbar.pyo254970644editdlrm
colors.py391100644editdlrm
colors.pyc400790644editdlrm
colors.pyo400790644editdlrm
contour.py428950644editdlrm
contour.pyc360990644editdlrm
contour.pyo359370644editdlrm
dates.py360070755editdlrm
dates.pyc400170644editdlrm
dates.pyo399530644editdlrm
dviread.py320330644editdlrm
dviread.pyc346820644editdlrm
dviread.pyo345390644editdlrm
figure.py412640644editdlrm
figure.pyc429390644editdlrm
figure.pyo428080644editdlrm
finance.py205820644editdlrm
finance.pyc185190644editdlrm
finance.pyo183590644editdlrm
fontconfig_pattern.py64290644editdlrm
fontconfig_pattern.pyc65190644editdlrm
fontconfig_pattern.pyo65190644editdlrm
font_manager.py426530644editdlrm
font_manager.pyc404560644editdlrm
font_manager.pyo404560644editdlrm
ft2font.so3061680775editdlrm
hatch.py65640644editdlrm
hatch.pyc91200644editdlrm
hatch.pyo91200644editdlrm
image.py315400644editdlrm
image.pyc330420644editdlrm
image.pyo329960644editdlrm
legend.py323020644editdlrm
legend.pyc235510644editdlrm
legend.pyo233780644editdlrm
lines.py546850644editdlrm
lines.pyc564310644editdlrm
lines.pyo563260644editdlrm
mathtext.py1020090644editdlrm
mathtext.pyc1030670644editdlrm
mathtext.pyo1026790644editdlrm
mlab.py942940644editdlrm
mlab.pyc1000040644editdlrm
mlab.pyo998240644editdlrm
mpl.py7850644editdlrm
mpl.pyc11760644editdlrm
mpl.pyo11760644editdlrm
nxutils.so95120775editdlrm
offsetbox.py298070644editdlrm
offsetbox.pyc338890644editdlrm
offsetbox.pyo338340644editdlrm
patches.py1284850644editdlrm
patches.pyc1301480644editdlrm
patches.pyo1300100644editdlrm
path.py217650644editdlrm
path.pyc211740644editdlrm
path.pyo209540644editdlrm
pylab.py109810644editdlrm
pylab.pyc123990644editdlrm
pylab.pyo123990644editdlrm
pyparsing.py1439240644editdlrm
pyparsing.pyc1467370644editdlrm
pyparsing.pyo1467370644editdlrm
pyplot.py824680644editdlrm
pyplot.pyc802790644editdlrm
pyplot.pyo802790644editdlrm
quiver.py375400644editdlrm
quiver.pyc337880644editdlrm
quiver.pyo337880644editdlrm
rcsetup.py234340644editdlrm
rcsetup.pyc211190644editdlrm
rcsetup.pyo209490644editdlrm
scale.py142330644editdlrm
scale.pyc194740644editdlrm
scale.pyo194740644editdlrm
spines.py126840644editdlrm
spines.pyc116360644editdlrm
spines.pyo112090644editdlrm
table.py168280644editdlrm
table.pyc169310644editdlrm
table.pyo167800644editdlrm
texmanager.py224640644editdlrm
texmanager.pyc199620644editdlrm
texmanager.pyo199620644editdlrm
text.py598220644editdlrm
text.pyc592400644editdlrm
text.pyo592400644editdlrm
ticker.py404280644editdlrm
ticker.pyc504610644editdlrm
ticker.pyo503250644editdlrm
tight_bbox.py36550644editdlrm
tight_bbox.pyc40660644editdlrm
tight_bbox.pyo40660644editdlrm
transforms.py753870644editdlrm
transforms.pyc896110644editdlrm
transforms.pyo887020644editdlrm
ttconv.so653600775editdlrm
type1font.py115370644editdlrm
type1font.pyc112560644editdlrm
type1font.pyo112560644editdlrm
units.py49760644editdlrm
units.pyc57750644editdlrm
units.pyo57750644editdlrm
widgets.py408330644editdlrm
widgets.pyc425680644editdlrm
widgets.pyo423820644editdlrm
windowing.py4540644editdlrm
windowing.pyc12830644editdlrm
windowing.pyo12830644editdlrm
_cm.py3704140644editdlrm
_cm.pyc1030420644editdlrm
_cm.pyo1030420644editdlrm
_cntr.so211840775editdlrm
_delaunay.so611200775editdlrm
_image.so2822480775editdlrm
_mathtext_data.py579900644editdlrm
_mathtext_data.pyc637870644editdlrm
_mathtext_data.pyo637870644editdlrm
_path.so2799920775editdlrm
_png.so1564720775editdlrm
_pylab_helpers.py27150644editdlrm
_pylab_helpers.pyc37080644editdlrm
_pylab_helpers.pyo37080644editdlrm
__init__.py289720644editdlrm
__init__.pyc289800644editdlrm
__init__.pyo289260644editdlrm
Edit: /usr/lib64/python2.6/site-packages/matplotlib/texmanager.pyc (19962B)
Ñò „ñ™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((s;/usr/lib64/python2.6/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((s;/usr/lib64/python2.6/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((s;/usr/lib64/python2.6/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((s;/usr/lib64/python2.6/site-packages/matplotlib/texmanager.pyRU¶s&7% cCs|iS(sU returns a string containing font configuration for the tex preamble (RK(RL((s;/usr/lib64/python2.6/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((s;/usr/lib64/python2.6/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((s;/usr/lib64/python2.6/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((s;/usr/lib64/python2.6/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~((s;/usr/lib64/python2.6/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((s;/usr/lib64/python2.6/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’((s;/usr/lib64/python2.6/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((s;/usr/lib64/python2.6/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((s;/usr/lib64/python2.6/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((s;/usr/lib64/python2.6/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