HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyo
�
1&XLc@s�ddlZddlmZddlZddlmZmZddljZ	edddddd	g�d
��Z
eddg�d��Zedd
g�d��Zeddg�d��Z
eddg�d��Zeddg�d��Zeddg�d��Zeddg�d��Zeddg�d��Zedddg�d��Zeddg�d��Zedd g�d!��Zedd"g�d#��Zedd$g�d%��Zedd&g�d'��Zedd(g�d)��Zedd*g�d+��Zedd,gd-d.�d/��Zedd0g�d1��Zedd2gd-d.�d3��Zedd4g�d5��Zedd6g�d7��Ze d8kr�ddl!Z!e!j"d9d:d;gd<e#�ndS(=i����N(tma(timage_comparisontknownfailureiftbaseline_imagestformatter_ticker_001tformatter_ticker_002tformatter_ticker_003tformatter_ticker_004tformatter_ticker_005cCstddljj}|j�gtd�D]}||j^q)}gtd�D]}d|d|j^qO}gtd�D]}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
�|jd�dS(Ni����i
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
Cs�tjddd�}tjdtj|�}tj�}|jddtddd
d�}|j||dd
dd�\}|j	ddddddddd�|j
d�dS(Ngg@g{�G�z�?g@iotautoscale_ontxlimi����itylimi����tlwiR	tpurples	local maxtxyitxycoordstdatatxytextt
textcoordss
offset pointsR%(i����i(i����i(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_axescCs�tjddd�}dtj|}tj�}|jddt�}|j||ddd	d
�\}d}||||}}|j|g|gd�|jd
d||fdddddt	dddd�dddd�|j
d�dS(Ngg�?g����MbP?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
ddfdddddtdddd�dddddt�|j
d d�|jd d�|jd!�dS(#Ni����(tEllipseii
iR?RHtalphag�?iotaspecttequalsthe topR+g@g$@R.ig4@R,R<R/R>R@RAg�������?RBRCRDREtclip_oni��RN(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
�|jd�dS(Ni����(tdatetimetETtdti�iig$@g8@gN@i�tyunitstdegR	tredg�b&Ag�b&Agg�V@tbi�i�iiZi�R?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�}tjd�tjdgdgd�tjd�tjdgdgd�|jd�dS(Ni�iR=i�iRo(RRRRR(R"((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_single_point�s

tsingle_datecCs{dg}dg}tj�}tjd�tj||ddd�tjd�tj||ddd�|jd�dS(	NgX&Ag�(\�bP�i�R=R	RHi�Rq(RRRt	plot_dateRR(ttime1tdata1R"((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_single_date�s		

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�}tjdg�tj|�tjdh�tj|�tjdi�djdklm	}|t
tj||f�tjdl�tj|dd�dff|dfdd�fdm�|jdn�dS(qNga��	�
�?gx@����?g��x��d�?g!t�%Z�?g�wk����?g�I:Og�?g/�Ǥv�?g�~���Y�?g.~K�`	�?gnYt��b�?ggk�JC��?gZ�P=g��?gZ��N�ۜ?g�:S*٘�?gm=��a�?g}�0"��?g6��B���?gާp%��?gN�����?g�2qi��?g?
lm��?gibOu���?g��v�W�?g���=�e�?gr{��T�?g��%H/�?g�����b�?ggwP����?g��@u�l�?g�u��P��?g��R�!�?g�h�c��?g�U�����?g��S��?gv��]��?g�2��W�?gp��悃�?g7�����?g����W��?g�LI�R�?gi��Ur�?g+�����?g%A�
U�?g���"<o�?g��U
��?g[q����?gJ#�LR�?gv�zg��?g�;����?g�Zo'S}�?g�^J��?g�;���3�?gv�*b��?g;:l*��?g]��JJ��?gT`��� �?gMnN���?g�RKk���?g��)���?g̦�EZ��?g�zKZm��?g;ŪA���?g���,'�?g�U}2��?g/ܹ0ҋ�?g�㳆���?g\5�tX��?gG�r4��?gfwԚ�?g�7@z�i�?g�H�9�?g���σ7�?g޳*��4�?g������?g�}��|D�?g�fO�)+�?g84#�M��?g�	���,�?g<����?g�
�	��?g��`���?g��0����?g�k9#��?g��.�~�?g9̟��v�?gq/z�.&�?g�tG{�?g��Lޜ�?gٚvW��?ge�J�t��?g�o��NT�?g6�
���?gd���X�?gZ��+���?ghw�[�
�?g��$��?gEM��V}�?gַ@@f�?g�4m6�?g0�����?i
ii�i�i�i����(t
assert_raisesi�R=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_data�sF		





3tconst_xycCs�tj�}tjd�tjtjd�tjd��tjd�tjtjd�tjd��tjd�tjtjd	�tjd
�d�|jd�dS(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_xy�s
"
"
%tpolar_wrap_180tpolar_wrap_360cCsvtjd}tj�}tjddtdd�tjd|d|gdd	gd
�tjd|d|gdd	gd�tjd
d	ddddg�|jd�tj�}tjddtdd�tjd|d|gdd	gd
�tjd|d|gdd	gd�tjd|d|gdd	gd�tjd
d	ddddg�|jd�dS(Ng�f@ioR<t
resolutionii�iM���g�������?g�������?sb.-i�sg.-g�������?g333333�?g�?g333333�?R�ii����ifsr.-R�(	R0R3RRRRFR<trgridsR(tD2RR"((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_polar_wrap�s
''
'''tpolar_unitscCs�ddljj}|j�tj}|jdd�}|d|d|d|dg}d|d	|d
|d|g}ddddg}ddddg}tj�}tj	||dd
�|j
d�dS(Ni����g�?Rag@g@g@g@g>@g�F@gN@g�V@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_rmincCs�tjddd�}dtj|}tj�}|jddddgdt�}|j||�|jd�|j	d	�|j
d
�dS(Nig@g{�G�z�?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_epochcCs�ddlm}ddljj}|j�|jdd|ddd��}|jdd|ddd��}|jd|jjd	��}t	j
�}t	j||d
ddd
�t	j�}|j
|d||d|�|jd�dS(Ni����(R]R^R_i�iiiR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_epochcCs�ddlm}ddljj}|j�|jdd|ddd��}|jdd|ddd��}|jd|jjd	��}t	j
�}t	j||d
ddd
�t	j�}|j
|d||d|�|jd�dS(Ni����(R]R^R_i�iiiRR?R
RPg�?g@R�(R]RRRRRdReRiR�RRtaxhspanR�RYR(R]RR�R�R_R"R#((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_axhspan_epochPs
!! t
hexbin_extentcCsvtj�}|jd�}tjd�d}d|_|\}}|j||ddddd	g�|jd
�dS(Niog@�@ii�textentg�������?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
d�dS(Ngg{�G�z�?iioR�(R0R1tetlogtnantlenRRR4RR(RRR"R#((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_nonfinite_limitssstimshowcCs�d}tj||f�\}}||d8}||d8}tj|d|d||�}tj�}|jd�}|j|�|jd�dS(NidiioR�(R0tindicestsqrtRRR4R�R(tNRRRHR"R#((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_imshow}s#
timshow_clipttolg{�G�z�?cCsd}tj||f�\}}||d8}||d8}tj|d|d||�}tj�}|jd�}|j||dg�}|jd}|j�d}|j	�}ddl
m}	|	||�}
|j|d|
�|j
d	�dS(
Nidiioiii����(tTransformedPatht	clip_pathR�(R0R�R�RRR4tcontourtcollectionst	get_pathst
get_transformtmatplotlib.transformsR�R�R(R�RRRHR"R#tctclipPatht
clipTransformR�R�((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_imshow_clip�s#
tpolycollection_joinstylecCs�ddlm}tj�}|jd�}tjddgddgddgddgg�}|j|gdd�}|j|�|j	dd	�|j
dd	�|jg�|jg�|j
d
�dS(Ni����(R�ioiit
linewidthsi(iiR�(t
matplotlibR�RRR4R0RxtPolyCollectiontadd_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_joinstyle�s3


tfill_between_interpolatec
Cs�tjddd�}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d�dS(Ngig{�G�z�?g333333�?ii�R	R@twhereR?R
tinterpolateRbg�?i�tsharexR�(
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_interpolate�s++++tsymlogc	Cs�tjddddddddg�}tjd	d
ddd
dddg�}tj�}|jd�}|j||�|jd�d|_|jdd�|j	d�dS(Niiiiii	iii@Bi �i��idiioR�tlineari����i���(
R0RxRRR4Rt
set_yscalet
set_xscaleRYR(RRR"R#((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_symlog�s''
	t
pcolormeshcCs�d}tjdd|�}tjdd|d�}tj||�\}}tj|�tj|�}tj|�tj|�}|d}tj|d|d�d}||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�|	jd�dS(Nig��g�?ig�������?ig�?iyR)t
edgecolorstkslw=0.5izislw=3R�(R0tlinspacetmeshgridR2R�R�tmintmaxRtmasked_wheretfabstamaxRRR4R�t	set_titleR�R�R(tnRRtXtYtQxtQztZtZmR"R#((sM/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_axes.pyttest_pcolormesh�s,
$.





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


!!