1&XLc@sddlZddlmZddlZddlmZmZddljZ edddddd gd Z edd gd Z edd gdZ eddgdZ eddgdZeddgdZeddgdZeddgdZeddgdZedddgdZeddgdZedd gd!Zedd"gd#Zedd$gd%Zedd&gd'Zedd(gd)Zedd*gd+Zedd,gd-d.d/Zedd0gd1Zedd2gd-d.d3Zedd4gd5Zedd6gd7Ze d8krddl!Z!e!j"d9d:d;gd<e#ndS(=iN(tma(timage_comparisontknownfailureiftbaseline_imagestformatter_ticker_001tformatter_ticker_002tformatter_ticker_003tformatter_ticker_004tformatter_ticker_005cCstddljj}|jgtdD]}||j^q)}gtdD]}d|d|j^qO}gtdD]}d|d|j^q}}tj}tj d}|j d|j d |j ||d d d d |j d|j d|j d|j ||d dd d|j d|j d|j d|j |j ddS(Nii g?g?g?g?ios x-label 001RtcolortbluetxunitstsecRs x-label 003Rtgreenthours x-label 004Rs x-label 005R(tmatplotlib.testing.jpl_unitsttestingt jpl_unitstregistertrangeR tkmtplttfiguretsubplott set_xlabeltsavefigtplottautoscale_view(tunitstxtxdatatytydata1tydata2tfigtax((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_formatter_tickers& &..          t offset_pointsc Cstjddd}tjdtj|}tj}|jddtddd d}|j||d d dd\}|j ddddddddd|j ddS(Ngg@g{Gz?g@iot autoscale_ontxlimiitylimitlwiR tpurples local maxtxyitxycoordstdatatxytextt textcoordss offset pointsR%(ii(ii(ii(ii( tnptarangetcostpiRRt add_subplottFalseRtannotateR(tttsR"R#tline((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_basic_annotate-s !! t polar_axescCstjddd}dtj|}tj}|jddt}|j||ddd d \}d }||||}}|j|g|gd |jd d||fdddddt dddddddd|j ddS(Ngg?gMbP?g@iotpolarR s#ee8d18R)ii tosa polar annotationR+R.g?R/sfigure fractiont arrowpropst facecolortblacktshrinkthorizontalalignmenttlefttverticalalignmenttbaselineR;g@(g?g?( R0R1R3RRR4tTrueRR6tdictR(trtthetaR"R#R9tindtthisrt thistheta((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_polar_annotations>s  !  t polar_coordscCsddlm}|d"dddddd }tj}|jd d d }|j||j|j|jd dt j ddfdt j ddfdddddt dddddddddt |j d d|jd d|jd!dS(#Ni(tEllipseii iR?RHtalphag?iotaspecttequalsthe topR+g@g$@R.ig4@R,R<R/R>R@RAg?RBRCRDREtclip_oniRN(ii(tmatplotlib.patchesRORRR4t add_artistt set_clip_boxtbboxR6R0R3RGRFtset_xlimtset_ylimR(ROtelR"R#((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_polar_coord_annotationsas$   t fill_unitsc CsNddlm}ddljj}|j|jdd|ddd}d|j}|jdd}tj }|j d }|j |g|gd d dd|j ddddgddddgd|j d}|j |g|gd d dd|j ||||||gddddgd|j d}|j |g|gd d dd|j ddddgd|jd|jd|jd|jgd|j d} | j |g|gd d dd| j ||||||gd|jd|jd|jd|jgdd|j |jddS(Ni(tdatetimetETtdtiiig$@g8@gN@ityunitstdegR tredgb&Agb&AggV@tbiiiiZiR?R R\g@g@(R]RRRRtEpochRatDurationRRR4Rtfillt autofmt_xdateR( R]RR7tvaluetdayR"tax1tax2tax3tax4((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_fill_unitss4 !  """2". t single_pointcCsitj}tjdtjdgdgdtjdtjdgdgd|jddS(NiiR=iiRo(RRRRR(R"((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_single_points    t single_datecCs{dg}dg}tj}tjdtj||dddtjdtj||ddd|jddS( NgX&Ag(\bPiR=R RHiRq(RRRt plot_dateRR(ttime1tdata1R"((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_single_dates     t shaped_datacCsPtjddddddddd d g d d d dddddddg ddddddddddg dd d!d"d#d$d%d&d'd(g d)d*d+d,d-d.d/d0d1d2g d3d4d5d6d7d8d9d:d;d<g d=d>d?d@dAdBdCdDdEdFg dGdHdIdJdKdLdMdNdOdPg dQdRdSdTdUdVdWdXdYdZg d[d\d]d^d_d`dadbdcddg g }tjde}do|_tjde}dp|_tj}tjdgtj|tjdhtj|tjdidjdklm }|t tj||ftjdltj|dddff|dfddfdm|j dndS(qNga ?gx@?gxd?g!t%Z?gwk?gI:Og?g/Ǥv?g~Y?g.~K` ?gnYtb?ggkJC?gZP=g?gZNۜ?g:S*٘?gm=a?g}0"?g6B?gާp%?gN?g2qi?g? lm?gibOu?gvW?g=e?gr{T?g%H/?gb?ggwP?g@ul?guP?gR!?ghc?gU?gS?gv]?g2W ?gp悃?g7?gW?gLIR?giUr?g+ ?g%A U?g"@gF@gN@gV@R R R( RRRRR0R3tUnitDblRRR<R(RR3Ratx1tx2R|R}R"((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_polar_unitss  "" t polar_rmincCstjddd}dtj|}tj}|jddddgdt}|j|||jd|j d |j d dS( Nig@g{Gz?ig?g?R<g@g?R( R0R1R3RRtadd_axesRFRtset_rmaxtset_rminR(RHRIR"R#((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_polar_rmin.s !  t axvspan_epochcCsddlm}ddljj}|j|jdd|ddd}|jdd|ddd}|jd|jjd }t j }t j ||d d d d t j }|j |d||d||jddS(Ni(R]R^R_iiiiR R?R RPg?g@R(R]RRRRRdReRitconvertRRtaxvspantgcaRXR(R]Rtt0ttfR_R"R#((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_axvspan_epoch;s !!   t axhspan_epochcCsddlm}ddljj}|j|jdd|ddd}|jdd|ddd}|jd|jjd }t j }t j ||d d d d t j }|j |d||d||jddS(Ni(R]R^R_iiiiR R?R RPg?g@R(R]RRRRRdReRiRRRtaxhspanRRYR(R]RRRR_R"R#((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_axhspan_epochPs !!   t hexbin_extentcCsvtj}|jd}tjdd}d |_|\}}|j||ddddd g|jd dS( Niog@@iitextentg?g333333?g333333?gffffff?R(ii(RRR4R0R1RythexbinR(R"R#R-RR((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_hexbin_extentfs   "tnonfinite_limitscCsztjdtjd}tj|}tj|t|dsD   !#) ,    !!