/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/dviread.pyc (34682B)
sJc@sdZddkZddkZddkiZddkZddkZddk Z ei ddddddd d d d Z d e fdYZ de fdYZde fdYZdZdZde fdYZde fdYZde fdYZedZddZhZhZdZdZdZed jopddkZeii d!ei!dZ"ye#ei!dZ$Wne%j o eZ$nXe e"e$Z&eed"Z'xe&D]Z(d#GHeZ)xe(i*D]\Z+Z,Z-Z.Z/e-e)jo.d$Ge-i0Gd%Ge-i1e2d&d'GHe-Z)ne+Ge,Ge.Gd(e.jo d)jno e3e.pd*Ge/GHqWx2e(i4D]'\Z+Z,Z/Z5e+Ge,Gd+Ge/Ge5GHqWqWndS(,sI An experimental module for reading dvi files output by TeX. Several limitations make this not (currently) useful as a general-purpose dvi preprocessor, but it is currently used by the pdf backend for processing usetex text. Interface:: dvi = Dvi(filename, 72) # iterate over pages (but only one page is supported for now): for page in dvi: w, h, d = page.width, page.height, page.descent for x,y,font,glyph,width in page.text: fontname = font.texname pointsize = font.size ... for x,y,height,width in page.boxes: ... iNtpreitouteritinpageit post_postitfinaleitDvicBs eZdZdZdZdZdZdZedZ dZ dZ d Z d Z d Zd Zd ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZRS(s A dvi ("device-independent") file, as produced by TeX. The current implementation only reads the first page and does not even attempt to verify the postamble. cCsKtiid|dt|d|_||_h|_ti|_ dS(s Initialize the object. This takes the filename as input and opens the file; actually reading the file happens when iterating through the pages of the file. sDvi: tdebugtrbN( t matplotlibtverbosetreporttopentfiletdpitfontst _dvistateRtstate(tselftfilenameR ((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyt__init__&s   ccs6x/to'|i}|o|iVqPqWdS(s Iterate through the pages of the file. Returns (text, boxes) pairs, where: text is a list of (x, y, fontnum, glyphnum, width) tuples boxes is a list of (x, y, height, width) tuples The coordinates are transformed into a standard Cartesian coordinate system at the dpi value given when initializing. The coordinates are floating point numbers, but otherwise precision is not lost and coordinate values are not clipped to integers. N(tTruet_readt_output(Rt have_page((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyt__iter__2s  cCs"|iip|iindS(s: Close the underlying file if it is open. N(R tclosedtclose(R((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRGs cCsGtititi ti f\}}}}ti }x|i|iD]}t|djo|\}}} } d} n+|\}}} } } | i| \} } t||}t||| }t||| }t||| }t||}qGW|id jo;t i d|id|id||d||d||S|idd }g}|iD]?\}}}} } ||||||||| | |fqk~}g}|iD]=\}}} } |||||||| || |fq~}t i d|d|d|||d|||d|||S( sk Output the text and boxes belonging to the most recent page. page = dvi._output() iittexttboxestwidththeighttdescentgzGR@iiNi( tnptinfRRtlent_height_depth_oftmintmaxR tNonet mpl_cbooktBunch(Rtminxtminytmaxxtmaxyt maxy_puretelttxtythtwtetfonttgtdt_[1]tfRt_[2]R((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRNs4,   OTcCslxeto]t|iid}|i||djotS|itijo|it SqWdS(st Read one page from the file. Return True if successful, False if there were no more pages. iiN( RtordR treadt _dispatchRRRRtFalse(Rtbyte((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRrs   cCsz|ii|}t|d}|o|djo|d}nx/td|D]}d|t||}qTW|S(s~ Read and return an integer argument *nbytes* long. Signedness is determined by the *signed* keyword. iiii(R R;R:trange(Rtnbytestsignedtstrtvalueti((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyt_argsc Cs d|jo djno|i|nZ |djo|i|idn3 |djo|i|idn |djo|i|idn|d jo|i|id tn|d jo,|i|id t|id tn|d jo|i|idn[|d jo|i|idn4|djo|i|idn |djo|i|id tn|djo,|i|id t|id tn|djo|in|djo>|ig}tdD]}||id tq~nD|djo|i n)|djo|i n|djo|i n|djo|i |idtn|djo|i |idtn|djo|i |idtnu|djo|i |id tnK|djo|i dAn-|djo|i |idtn|djo|i |idtn|djo|i |idtn|djo|i |id tn|d jo|idAng|d!jo|i|idtn=|d"jo|i|idtn|d#jo|i|idtn|d$jo|i|id tn|d%jo|i|idtn|d&jo|i|idtnk|d'jo|i|idtnA|d(jo|i|id tn|d)jo|idAn|d*jo|i|idtn|d+jo|i|idtn|d,jo|i|idtn{|d-jo|i|id tnQ|d.jo|idAn3|d/jo|i|idtn |d0jo|i|idtn|d1jo|i|idtn|d2jo|i|id tnd3|jo d4jno|i|d3nX|d5jo|i|idn1|d6jo|i|idn |d7jo|i|idn|d8jo|i|id tnd9|jo d:jno6|i|d8}|ii|}|i|ned;|jo d<jno|i|d:|d<j}g}dBD]}||i|qi~\} } } } } |ii| | }|i|| | | | | |n|d=johg}dCD]}||i|q~\}}}}}|ii|}|i|||||nD|d>jo|in)|d?jo|intd@|dAS(Ds Based on the opcode *byte*, read the correct kinds of arguments from the dvi file and call the method implementing that opcode with those arguments. iiiiiiiiiiiiiiiiiii iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiisunknown command: byte %dN(iiiii(iiiii(t _set_charRERt _set_rulet _put_chart _put_rulet_nopt_bopR?t_eopt_pusht_popt_rightt_right_wR&t_right_xt_downt_down_yt_down_zt_fnt_numR R;t_xxxt_fnt_deft_pret_postt _post_postt ValueError(RR>R7RDR"tspecialtkR9R/tctsR6tatltnt_[3]tnumtdentmag((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyR<s     ,     ,  >                                   9# 9  cCs|itijo tdn|djotd|n|djp|dd jo tdn|djo td nti|_dS( Ns!pre command in middle of dvi fileisUnknown dvi format %dii;isnonstandard units in dvi fileis%nonstandard magnification in dvi filei(RRRR[R(RRDRdReRftcomment((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRXs     cCsS|itijo tdn|i||i|i|ii|7_dS(Nsmisplaced set_char in dvi file( RRRR[RHR1RR8t _width_of(Rtchar((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRFs  cCsC|itijo tdn|i|||i|7_dS(Nsmisplaced set_rule in dvi file(RRRR[RIR1(RR`tb((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRGs c Cs|itijo tdn|i|i}|idjo2|ii |i |i |||i |fn1|i }x|i|iD]\}}}}}tdt||i d|id|id|i} |ii |i t|||i t||| || i |fqW|iig} |i|iD]W\}}} } | |i t|||i t||t| |t| |fqA~ dS(Nsmisplaced put_char in dvi filetscalettfmttexnametvf(RRRR[RR8t_vfR&RtappendR1tvRht_scaletDviFontt_mul2012t_tfmRmRtextend( RRiR4RkR/R0R8R5R2tnewfR7R`Rj((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRHs   cCsd|itijo tdn|djo3|djo&|ii|i|i||fndS(Nsmisplaced put_rule in dvi filei(RRRR[RRpR1Rq(RR`Rj((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRIs cCsdS(N((R((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRJsc Cs||itijotd|inti|_d\|_|_|_|_|_ |_ g|_ g|_ g|_ dS(Ns$misplaced bop in dvi file (state %d)i(iiiiii(RRRR[RR1RqR2R/R0tztstackRR( Rtc0tc1tc2tc3tc4tc5tc6tc7tc8tc9tp((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRKs *  cCsZ|itijo tdnti|_|`|`|`|`|` |` |` dS(Nsmisplaced eop in dvi file( RRRR[RR1RqR2R/R0RxRy(R((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRL&s  cCsX|itijo tdn|ii|i|i|i|i |i |i fdS(Nsmisplaced push in dvi file( RRRR[RyRpR1RqR2R/R0Rx(R((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRM,s cCsW|itijo tdn|ii\|_|_|_|_ |_ |_ dS(Nsmisplaced pop in dvi file( RRRR[RytpopR1RqR2R/R0Rx(R((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRN1s cCs3|itijo tdn|i|7_dS(Nsmisplaced right in dvi file(RRRR[R1(RRj((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRO6s cCsP|itijo tdn|dj o ||_n|i|i7_dS(Nsmisplaced w in dvi file(RRRR[R&R2R1(Rtnew_w((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRP;s    cCsP|itijo tdn|dj o ||_n|i|i7_dS(Nsmisplaced x in dvi file(RRRR[R&R/R1(Rtnew_x((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRQBs    cCs3|itijo tdn|i|7_dS(Nsmisplaced down in dvi file(RRRR[Rq(RR`((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRRIs cCsP|itijo tdn|dj o ||_n|i|i7_dS(Nsmisplaced y in dvi file(RRRR[R&R0Rq(Rtnew_y((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRSNs    cCsP|itijo tdn|dj o ||_n|i|i7_dS(Nsmisplaced z in dvi file(RRRR[R&RxRq(Rtnew_z((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRTUs    cCs-|itijo tdn||_dS(Nsmisplaced fnt_num in dvi file(RRRR[R8(RR]((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRU\s c Csttiiddig}|D]B}|dt|jo djno|pdt|q~ddS(Ns!Dvi._xxx: encountered special: %sti is<%02x>R(RR R tjoinR:(RR\R7tch((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRVas   Pc Cst|| }|djo1|idjo!||ijotd|nt|| } td|d|d|d| |i|tbyte_attccRlR7R/tplRDR]tcstds((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyR<s4   3  cCs|itijo tdnti|_|ii||_||_||_ d\|_ |_ |_ |_ |_|_ggg|_|_|_|i|_dS(NsMisplaced packet in vf filei(iiiiii(RRRR[RR RRt _packet_chart _packet_widthR1RqR2R/R0RxRyRRRR8(RRRRl((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRs    *cCsAtid|id|id|i|i|i>> map = PsfontsMap(find_tex_file('pdftex.map')) >>> entry = map['ptmbo8r'] >>> entry.texname 'ptmbo8r' >>> entry.psname 'Times-Bold' >>> entry.encoding '/usr/local/texlive/2008/texmf-dist/fonts/enc/dvips/base/8r.enc' >>> entry.effects {'slant': 0.16700000000000001} >>> entry.filename For historical reasons, TeX knows many Type-1 fonts by different names than the outside world. (For one thing, the names have to fit in eight characters.) Also, TeX's native fonts are not Type-1 but Metafont, which is nontrivial to convert to PostScript except as a bitmap. While high-quality conversions to Type-1 format exist and are shipped with modern TeX distributions, we need to know which Type-1 fonts are the counterparts of which native fonts. For these reasons a mapping is needed from internal font names to font file names. A texmf tree typically includes mapping files called e.g. psfonts.map, pdftex.map, dvipdfm.map. psfonts.map is used by dvips, pdftex.map by pdfTeX, and dvipdfm.map by dvipdfm. psfonts.map might avoid embedding the 35 PostScript fonts (i.e., have no filename for them, as in the Times-Bold example above), while the pdf-related files perhaps only avoid the "Base 14" pdf fonts. But the user may have configured these files differently. t_fontcCs;h|_t|d}z|i|Wd|iXdS(Ntrt(RR t_parseR(RRR ((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRs  cCs|i|}|i|i}}|dj o$|id ot||_n|dj o'|id ot|i|_n|S(Nt/(RRtencodingR&t startswitht find_tex_file(RRmRtfntenc((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRs cCsLxE|D]=}|i}|djp|idoqngd}}x|t|jo||djo>|d7}|id|}|i|||!|d}nN|id|d}|djot|}n|i|||!|}x3|t|jo||djo|d7}qWqMW|i|qWdS( sParse each line into words.Rt%it"it iN(tstripRR"tindexRptfindt _register(RR tlinetwordstpostend((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRs,    $c Cs|d \}}d\}}}x|dD]}|idp |}q*|id}|ido"|djpt|d}q*|ido|djpt|}q*|djpt|}q*W|i}h}y%t||idd|dRegister a font described by "words". The format is, AFAIK: texname fontname [effects and filenames] Effects are PostScript snippets like ".177 SlantFont", filenames begin with one or two less-than signs. A filename ending in enc is an encoding file, other filenames are font files. This can be overridden with a left bracket: <[foobar indicates an encoding file named foobar. There is some difference between `_ The library that :program:`kpsewhich` is part of. t kpsewhichs --format=sfind_tex_file(%s): %sRtstdoutisfind_tex_file result: %sN( R&RR R t subprocesstPopentPIPEt communicatetrstrip(RtformattcmdtpipeR((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyR%s    cCsYxRtoJy|i|SWqtj o&}|itijoqqPqXqWdS(N(RR;tOSErrorterrnotEINTR(RtbufsizeR3((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyt _read_nointrBscCs]y ||SWntj onXt||}|o||}nd}|||<|S(N(tKeyErrorRR&(Rmtclass_tsuffixtcacheRR((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyt _fontfileTs  cCst|tdtS(Ns.tfm(RRt _tfmcache(Rm((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRcscCst|tdtS(Ns.vf(RRt_vfcache(Rm((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyRfst__main__sdebug-annoyings pdftex.maps=== new page ===R4tscaledg@ii it.tBOX(6RRRtmatplotlib.cbooktcbookR'tnumpyR RRR(RtobjectRRsRRRtRRRR&RRRRRRRRtsysR t set_leveltargvtfnameRR t IndexErrortdvitfontmaptpagetfPrevRR/R0R8R^R2RmRrtpowtchrRR1(((s8/usr/lib64/python2.6/site-packages/matplotlib/dviread.pyts\     *bOW <y9           $ D