• File: test_axes.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyc
  • Date Modified: 07/22/2015 11:41 PM
  • File size: 17.55 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit

1&XLc@sddlZddlmZddlZddlmZmZddljZ	edddddd	gd
Z
eddgdZedd
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|jd	|j||d
ddd
|jd|j
d|jd|j||d
ddd|j
d|jd|j
d|j
|jddS(Nii
g?g?g?g?iosx-label 001RtcolortbluetxunitstsecRsx-label 003Rtgreenthoursx-label 004Rsx-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(tnptarangetcostpiRRtadd_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
dd}|j||j|j|jd
dt	j
ddfdt	j
ddfdddddtdddddddddt|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

tsingle_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		

tshaped_datacCsPtjddddddddd	d
g
dd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|jdndS(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"<o?gU
?g[q?gJ#LR?gvzg?g;?gZo'S}?g^J?g;3?gv*b?g;:l*?g]JJ?gT` ?gMnN?gRKk?g)?g̦EZ?gzKZm?g;ŪA?g,'?gU}2?g/ܹ0ҋ?g㳆?g\5tX?gGr4?gfwԚ?g7@zi?gH9?gσ7?g޳*4?g?g}|D?gfO)+?g84#M?g	,?g<?g
	?g`?g0?gk9#?g.~?g9̟v?gq/z.&?gtG{?gLޜ?gٚvW?geJt?goNT?g6
?gdX?gZ+?ghw[
?g$?gEMV}?gַ@@f?g4m6?g0?i
iiiii(t
assert_raisesiR=Rv(ii
(i
i(R0tarrayR1tshapeRRRRt
nose.toolsRwt
ValueErrorR(Rty1ty2R"Rw((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_shaped_datasF		





3tconst_xycCstj}tjdtjtjdtjdtjdtjtjdtjdtjdtjtjd	tjd
d|jddS(Ni7i
i8i9R=R(i
(i
(i
(i
(RRRRR0R1tonesR(R"((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyt
test_const_xys
"
"
%tpolar_wrap_180tpolar_wrap_360cCsvtjd}tj}tjddtddtjd|d|gdd	gd
tjd|d|gdd	gdtjd
d	ddddg|jdtj}tjddtddtjd|d|gdd	gd
tjd|d|gdd	gdtjd|d|gdd	gdtjd
d	ddddg|jddS(Ngf@ioR<t
resolutioniiiMg?g?sb.-isg.-g?g333333?g?g333333?Riiifsr.-R(	R0R3RRRRFR<trgridsR(tD2RR"((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_polar_wraps
''
'''tpolar_unitscCsddljj}|jtj}|jdd}|d|d|d|dg}d|d	|d
|d|g}ddddg}ddddg}tj}tj	||dd
|j
ddS(Nig?Rag@g@g@g@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
dd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
dd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|d<tj}|jd}|j	|||j
ddS(Ngg{Gz?iioR(R0R1tetlogtnantlenRRR4RR(RRR"R#((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_nonfinite_limitssstimshowcCsd}tj||f\}}||d8}||d8}tj|d|d||}tj}|jd}|j||jddS(NidiioR(R0tindicestsqrtRRR4RR(tNRRRHR"R#((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_imshow}s#
timshow_clipttolg{Gz?cCsd}tj||f\}}||d8}||d8}tj|d|d||}tj}|jd}|j||dg}|jd}|jd}|j	}ddl
m}	|	||}
|j|d|
|j
d	dS(
Nidiioiii(tTransformedPatht	clip_pathR(R0RRRRR4tcontourtcollectionst	get_pathst
get_transformtmatplotlib.transformsRRR(RRRRHR"R#tctclipPatht
clipTransformRR((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_imshow_clips#
tpolycollection_joinstylecCsddlm}tj}|jd}tjddgddgddgddgg}|j|gdd}|j||j	dd	|j
dd	|jg|jg|j
d
dS(Ni(Rioiit
linewidthsi(iiR(t
matplotlibRRRR4R0RxtPolyCollectiontadd_collectiont
set_xboundt
set_yboundt
set_xtickst
set_yticksR(tmcollR"R#tvertsR((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_polycollection_joinstyles3


tfill_between_interpolatec
Cstjddd}tjdtj|}dtjdtj|}tj}|jd}|j||||dd|j|||d	||kd
ddt	|j|||d	||kd
d
dt	tj
j|d}|jdd|}|j||||dd|j|||d	||kd
ddt	|j|||d	||kd
d
dt	|jddS(Ngig{Gz?g333333?iiR	R@twhereR?R
tinterpolateRbg?itsharexR(
R0R1tsinR3RRR4Rtfill_betweenRFRtmasked_greaterR(RR|R}R"R#Rj((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_fill_between_interpolates++++tsymlogc	Cstjddddddddg}tjd	d
ddd
dddg}tj}|jd}|j|||jdd|_|jdd|j	ddS(Niiiiii	iii@Bi iidiioRtlinearii(
R0RxRRR4Rt
set_yscalet
set_xscaleRYR(RRR"R#((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_symlogs''
	t
pcolormeshcCsd}tjdd|}tjdd|d}tj||\}}tj|tj|}tj|tj|}|d}tj|d|dd}||j|j|j}tj	tj
|dtj|k|}tj
}	|	jd}
|
j|||d	dd
d|
jd|
jg|
jg|	jd
}
|
j|||d	dd
d|
jd|
jg|
jg|	jddS(Nigg?ig?ig?iyR)t
edgecolorstkslw=0.5izislw=3R(R0tlinspacetmeshgridR2RRtmintmaxRtmasked_wheretfabstamaxRRR4Rt	set_titleRRR(tnRRtXtYtQxtQztZtZmR"R#((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_pcolormeshs,
$.





t__main__targvs-ss--with-doctesttexit($tnumpyR0RRtmatplotlib.testing.decoratorsRRtmatplotlib.pyplottpyplotRR$R:RMR[RnRpRuR~RRRRRRRRRRRRRRt__name__tnoset	runmoduleR5(((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyt<module>sD	!#),	


!!