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

Lc@sddlZddlZddlmZmZddljZddl	TddlZddlm
Z
mZmZddl
mZddlZejZejZeddgdZedd	gd
ddZedd
gdZdZdZeddgdZeddgdZeddgdZdZeedZeddgdZeddgdZedkrddl Z e j!ddd gd!e"ndS("iN(timage_comparisontknownfailureif(t*(tpatchestpatht
transforms(traisestbaseline_imagestclippingcCstjddd}tjdt|}tj}|jd}|j||dd|jd|j	g|j
g|jd
dS(Ngg@g{Gz?iiot	linewidthg?gɿgQѿR(gɿgQѿ(tnptarangetsintpitplttfiguretadd_subplottplottset_ylimt
set_xtickst
set_ytickstsavefig(tttstfigtax((sW/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_simplification.pyt
test_clippings


toverflowttolg{Gz?cCstjddddg}tjt|}tj}|jd}|j|||jdddd	|j	g|j
g|jd
dS(Ng?g@g@gjAiotxminitxmaxiR(R
tarrayRtlenRRRRtset_xlimRRR(txtyRR((sW/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_simplification.pyt
test_overflow s

tclipping_diamondcCstjdddddg}tjdddddg}tj}|jd}|j|||jdddd|jd	dd
d|jg|j	g|j
ddS(Ngg?gioRg333333Rg333333?tymintymaxR%(R
RRRRRR!RRRR(R"R#RR((sW/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_simplification.pyttest_diamond.s

cCstjjdtjjddd}tj}|jd}|j|dddd	}|jg|j	g|dj
}|dj}|j|}t
|jd
d}t|GHt|d
kstdS(Nitsizeii2iotsolid_joinstyletroundR	g@tsimplifyi iXi,(i(i iX(R
trandomtseedtuniformRRRRRRtget_patht
get_transformttransform_pathtlistt
iter_segmentsR tAssertionError(R"RRtp1Rt	transformt
simplified((sW/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_simplification.pyt
test_noise=s

cCs
tjjdtjtjdtjddtjjddd}tj}|j	d}|j
|ddd	d}|jg|jg|dj
}|dj}|j|}t|jd
d}t|GHt|d
kstdS(Nig@iR)g{Gz?ioR*R+R	R,i iXil(i(i iX(R
R-R.RtlinspaceR
R/RRRRRRR0R1R2R3R4R R5(R"RRR6RR7R8((sW/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_simplification.pyttest_sine_plus_noisePs<

tsimplify_curvecCstjtdd	d
tdfddd
dgtjtjtjtjtjtjtjtjgdd}tj}|j	d}|j
||jg|jg|j
d|jd|jddS(NiiitfctnoneioR<(ii(ii(ii(ii(ii(ii(ii(ii(ii(Rt	PathPatchtPathtnantMOVETOtCURVE3t	CLOSEPOLYRRRt	add_patchRRR!RR(tpp1RR((sW/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_simplification.pyttest_simplify_curvecs$9	




thatch_simplifyc	Csktj}|jd}|jtd
dddtdd|jd|jd|jd	dS(
Nioiitfillthatcht/g?g?RH(ii(g?g?(g?g?(	RRRREt	RectangletFalseR!RR(RR((sW/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_simplification.pyt
test_hatchts%

t	fft_peakscCstj}td}|jd}|jtttdtd|t	t
|}|jg|jg|j
d|dj}|dj}|j|}t|jdd}t
|GHt
|d
kstdS(Niioig{Gz?ROiR,i iXi(i iX(RRRRRtabstfftRR
tblackmanR RRRR0R1R2R3R4R5(RRRR6RR7R8((sW/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_simplification.pyttest_fft_peaks~s=


cCsd}tj|jddd}|jt|ddf}t|}|jtjdd}t	|}t|d	kst
|d
d	tjkst
dS(Ns
ZwAAAAku+v9UAQAA+Tj6/z8CAADpQ/r/KAMAANlO+v8QBAAAyVn6//UEAAC6ZPr/2gUAAKpv+v+8
BgAAm3r6/50HAACLhfr/ewgAAHyQ+v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9AADr4v7/fT0AAOLt/v+oPQAA2fj+/9E9AADQA///
+T0AAMYO//8fPgAAvRn//0M+AAC0JP//ZT4AAKsv//+GPgAAojr//6U+AACZRf//wj4AAJBQ///d
PgAAh1v///c+AAB+Zv//Dz8AAHRx//8lPwAAa3z//zk/AABih///TD8AAFmS//9dPwAAUJ3//2w/
AABHqP//ej8AAD6z//+FPwAANb7//48/AAAsyf//lz8AACPU//+ePwAAGt///6M/AAAR6v//pj8A
AAj1//+nPwAA/////w==tbase64tdtypes<i4itclipggY@ii(gggY@gY@(R
t
fromstringtdecodetreshapeR R@R4RtIdentityTransformR3R5RB(tdatatvertsRtsegs((sW/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_simplification.pyttest_start_with_movetoscCsttd<tjd}tjjd}tj|d<tj}|j	d}|j
||y|jtj
Wntk
rtnXttd<dS(Ns
path.simplifyi@
iio(RMtrcParamsR
RR-trandRARRRRRt	cStringIOtStringIOtetTrue(txxtyyRR((sW/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_simplification.pyt(test_throw_rendering_complexity_exceededs



tclipper_edgec
Csd}tjdd}|jddd	dd
ddd|jdd
ddt}|j||jjtjd|jj	tj
|jjtjd|jj	tj
|jjd	|jjd|j
dd|jddS(Niiiiiitfigsizetlefttbottomtwspacethspaceg?tylimtautoscale_oni	Rh(
iiiiiiiiii(ii(iig?g?(ii(RRtsubplots_adjusttadd_axesRMRtxaxistset_major_locatortMultipleLocatortset_major_formattert
NullFormattertyaxistset_ticks_positionR!R(tdatRR((sW/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_simplification.pyttest_clippers"
tpara_equal_perpc	Cstjddddddddgdgd}tjddddddddgdgd}tj}|jd}|j|d|d|j|d|dd|jddS(	NiiiiiiotroR{(R
RRRRRR(R"R#RR((sW/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_simplification.pyttest_para_equal_perps22t__main__targvs-ss--with-doctesttexit(#tnumpyR
t
matplotlibtmatplotlib.testing.decoratorsRRtmatplotlib.pyplottpyplotRtpylabRRRt
nose.toolsRRaRAR@RR$R(R9R;RGRNRSR^t
OverflowErrorRgRzR}t__name__tnoset	runmoduleRM(((sW/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_simplification.pyt<module>s2
		
!