https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /proc/self/root/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_image.pyc
�
1&XLc@s4ddlZddlmZmZddljZddlm	Z	ddl
mZddlZddl
Z
eddg�d��Zeddd	gd
dgdd
�d��Zd�Zd�Zeddg�d��Zeddg�d��Zedkr0ddlZejdddgde�ndS(i����N(timage_comparisontknownfailureif(t
assert_raises(tassert_array_equaltbaseline_imagest
image_interpscCs�tjd�}|jdd�}tj�}|jd�}|j|dd�|jd�|jd�|jd�}|j|dd	�|jd	�|jd
�}|j|dd�|jd�|j	d�d
S(s4make the basic nearest, bilinear and bicubic interpsidiii7t
interpolationtneareststhree interpolationsi8tbilineari9tbicubicRN(
tnptarangetreshapetplttfiguretadd_subplottimshowt	set_titlet
set_ylabeltsavefig(tXtfigtax1tax2tax3((sN/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_image.pyttest_image_interpss



s
figimage-0s
figimage-1t
extensionstpngttolg�~j�t�X?c	Cs�x�ttfD]�}tjdddd�}||_tjtjd�dtjd�d�\}}tj|d|d||�}tjd|dd|d�}||d}|j	|d	d
dd
dd
�|j	|ddd�dd�fd	d
dddd
�|j	|dd�ddd�fd	ddd
dd
�|j	|ddd�ddd�fd	ddddd
�|j
dt|�dd�q
WdS(stest the figimage methodtfigsizeitdpiidgY@ii2itxoityotorigintlowerNi����sfigimage-%d(ii(tFalsetTrueR
RtsuppressCompositeR
tix_RtsintfigimageRtint(R%Rtxtytztctimg((sN/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_image.pyt
test_figimage!s	2##88;cCshtj�}|jd�}|jdddg�tj�}|j|�|jd�tj|�dS(Nioiiii(	R
RRtplott	cStringIOtStringIORtseektimread(Rtaxtbuffer((sN/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_image.pyttest_image_python_io4s

cCs�ddlm}|jd�|jdd�}tj�}tj||dd�tj�}tj||dd�|jd�tj	|�}|jd�tj	|�}|j
d
ks�t�|j
dks�t�t||�dS(Ni����(trandomiii�Ridii(ii�i(ii�i(
tnumpyR8tseedtrandR1R2R
timsaveR3R4tshapetAssertionErrorR(R8tdatat	buff_dpi1tbuff_dpi100tarr_dpi1t
arr_dpi100((sN/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_image.pyttest_imsaveFs


t
image_clipcCs�ddlm}tj�}|jddd�}ddgdd	gg}|j|d
|||d|df�}|jd�dS(Ni����(tpiiot
projectionthammeriiiitextentRE(tmathRFR
RRRR(RFRR5tdtim((sN/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_image.pyttest_image_clipcs+Rc	Cs�ddl}ddlj}|j�}|jd�jd
�}|jd�}|j|dddd�|jd
d�|j	d
d�|j
d�dS(Ni����idi
ioRRRIiiiiR(i
i
(iiii(R9tmatplotlib.pyplottpyplotRRRRRtset_xlimtset_ylimR(R
R
RtarrR5((sN/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_image.pyttest_imshowpst__main__targvs-ss--with-doctesttexit(R9R
tmatplotlib.testing.decoratorsRRRNROR
t
nose.toolsRt
numpy.testingRR1tosRR/R7RDRMRSt__name__tnoset	runmoduleR#(((sN/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tests/test_image.pyt<module>s-		


https://t.me/AnonymousX5 - 2025