;ò z[úFc@s dklZdkZdkZdkZdkZdkZdklZdk l Z dk l Z ye gƒWnej od„Z nXy eƒWnej od„ZnXd„Zhdd „<d d „<d d „<dei<dei<dei<dei<dei<dei<dei<dei<dei<dd„<dd„<dd„<dd„<dd „<d!d"„<d#d$„<d%e<d&ei<d'eiefd?„ƒYZ2d@e2fdA„ƒYZ3dS(B(s nested_scopesN(stext(s linestyle(sstylecCsttt|ƒƒ|ƒSdS(N(szipsxrangeslenslist(slist((sB/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/graph/data.pys enumerate#scCs/h}x|D]\}}|||=ssabscCs|djo| p|S(Ni(sx(sx((sB/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/graph/data.pys>sssgncCs|djodpdS(Niiÿÿÿÿi(sx(sx((sB/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/graph/data.pys?sssqrtsexpslogssinscosstansasinsacossatanssindcCstitid|ƒS(Ni´(smathssinspisx(sx((sB/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/graph/data.pysIsscosdcCstitid|ƒS(Ni´(smathscosspisx(sx((sB/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/graph/data.pysJsstandcCstitid|ƒS(Ni´(smathstanspisx(sx((sB/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/graph/data.pysKssasindcCsdtiti|ƒS(Ni´(smathspisasinsx(sx((sB/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/graph/data.pysLssacosdcCsdtiti|ƒS(Ni´(smathspisacossx(sx((sB/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/graph/data.pysMssatandcCsdtiti|ƒS(Ni´(smathspisatansx(sx((sB/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/graph/data.pysNssnormcCsti||ƒS(N(smathshypotsxsy(sxsy((sB/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/graph/data.pysOss splitatvaluespises_datacBstZdZd„ZRS(sgraph data interface Graph data consists in columns, where each column might be identified by a string or an integer. Each row in the resulting table refers to a data point. All methods except for the constructor should consider self and its attributes to be readonly, since the data instance might be shared between several graphs simultaniously. The instance variable columns is a dictionary mapping column names to the data of the column (i.e. to a list). Only static columns (known at construction time) are contained in that dictionary. For data with numbered columns the column data is also available via the list columndata. Otherwise the columndata list should be missing and an access to a column number will fail. The names of all columns (static and dynamic) must be fixed at the constructor and stated in the columnnames dictionary. The instance variable title and defaultstyles contain the data title and the default styles (a list of styles), respectively. cCshSdS(sïcreate and return dynamic columns data Returns dynamic data matching the given axes (the axes range and other data might be used). The return value is a dictionary similar to the columns instance variable. N((sselfsgraph((sB/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/graph/data.pysdynamiccolumnsns(s__name__s __module__s__doc__sdynamiccolumns(((sB/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/graph/data.pys_dataUs svaluescBstZeZdd„ZRS(Nsuser provided valuescKs~xVt|iƒƒD]B\}}|ot|ƒ|jotdƒ‚qt|ƒ}qW||_|iƒ|_ ||_ dS(Nsdifferent number of values( s enumeratescolumnssvaluessislensls ValueErrorsselfskeyss columnnamesstitle(sselfstitlescolumnssislsvalues((sB/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/graph/data.pys__init__€s  (s__name__s __module__sdefaultsymbolss defaultstyless__init__(((sB/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/graph/data.pysvalues|sspointscBs#tZdZeZddd„ZRS(s Graph data from a list of pointssuser provided pointsic Ksåt|ƒo}t|dƒ}gi} |dD]} | | gƒq/~ |_xf|dD]Z}|t|ƒjot dƒ‚nx.t |ƒD] \}} |i|i| ƒqWqYWxR|i ƒD]D}t|ƒ|jp| ot|ƒ|jot dƒ‚qÄqÄW|o*tdt|ƒdƒg|i|_ntgi} |iƒD]#\} }| | |i|fƒqT~ ƒ|_ n=tgi} |D]\} }| | gfƒq›~ ƒ|_ |i iƒ|_||_dS(Niis%different number of columns per points+column number bigger than number of columns(slenspointsslsappends_[1]sxsselfs columndataspoints ValueErrors enumeratesiscolumnssvaluessvsabssaddlinenumberssrangesdictsitemsskeyskeyss columnnamesstitle( sselfspointsstitlesaddlinenumbersscolumnssvsispointsls_[1]skeysx((sB/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/graph/data.pys__init__s( 1   .*M<(s__name__s __module__s__doc__sdefaultsymbolss defaultstyless__init__(((sB/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/graph/data.pyspoints‹s cOstidƒt||ŽSdS(Ns=graph.data.list is deprecated. Use graph.data.points instead.(swarningsswarnspointssargsskwargs(sargsskwargs((sB/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/graph/data.pyslist¥s s_notitlecBstZRS(N(s__name__s __module__(((sB/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/graph/data.pys_notitleªss \$(-?\d+)sdatacBs/tZdZehdddd„Zd„ZRS(s2creates a new data set out of an existing data setis __column__c Ksv|tjo’|iƒ}|iƒdti|ipdƒdigi }|D]8\} }|dti| ƒtit |ƒƒfƒqP~ƒf|_n ||_||_|ii|_h|_xA|iƒD]3\}}y|ii||i|q%g} x0|i | ||ddƒD]}| i|ƒqªWt | ƒop||jo ||| oE|dg| } t | ƒ|jot | ƒ}n|i| ƒn|d7}q%q%W||jo!t||ƒ\} }|| 3nx[tt |ƒƒD]G} t || ƒ|jo*|| itg|t || ƒƒqƒqƒWt|d|ddtgi}t!||d ƒD] \} }||| dfƒqÿ~ƒSdS(Nistofloatistitlesaddlinenumbers(#scolumnss columndatas linenumbers maxcolumnssfiles readlinesslinesstripscommentpatternsmatchslensselfs splitlinesends stringpatterns columnpatternslinedatasvaluesappendsskipheadseverysskiptailsdivmodsskipsxsxrangesisextendsNonespointsstitlesdicts_[1]s enumeratescolumn(sfilestitlesselfscommentpatterns stringpatterns columnpatternsskipheadsskiptailseveryslinedatasskipsmatchslinesis maxcolumnssvalues_[1]scolumns columndatascolumnss linenumbersx((sB/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/graph/data.pysreadfile5s<  -   .suser provided file-like object(sselfscommentpatterns stringpatterns columnpatternsskipheadsskiptailseverysreadfilesfilenames readliness getcachekeyscachekeys filecacheshas_keysopensdatas__init__skwargs( sselfsfilenamescommentpatterns stringpatterns columnpatternsskipheadsskiptailseveryskwargsscachekeysreadfile((sB/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/graph/data.pys__init__.s !( s__name__s __module__srescompilesdefaultcommentpatternsdefaultstringpatternsdefaultcolumnpatterns splitlines getcachekeys__init__(((sB/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/graph/data.pysfileûs  * sconffilecBstZd„ZRS(NcKsƒd„}y |iWnLti|ƒ o|t|ƒ|ƒt|\}\}}|djo||ddf| i|