U
    —9%e°  ã                   @   s    d Z ddlmZmZ dd„ ZdS )zj
Limited tests of the visualization module. Right now it just makes
sure that passing custom Axes works.

é    )ÚmpÚfpc                  C   s.  zPdd l } | j d¡d }| d¡d d… }dd„ |D ƒddgk rFt‚dd l}W n tk
rn   tdƒ Y d S X | ¡ }| d	¡}tt	fD ]<}|j
d
d„ ddg|d | ¡ dks¶t‚| ¡ dksŠt‚qŠ| ¡ }| d	¡}tt	fD ]"}|jdd„ ddgddg|d qâ| ¡ dkst‚| ¡ dks*t‚d S )Nr   ú-Ú.é   c                 S   s   g | ]}t |ƒ‘qS © )Úint)Ú.0Ú_r   r   ú^/var/www/html/Darija-Ai-API/env/lib/python3.8/site-packages/mpmath/tests/test_visualization.pyÚ
<listcomp>   s     ztest_axes.<locals>.<listcomp>éc   z8
Skipping test (pylab not available or too old version)
éo   c                 S   s   | d S )Nr   r   )Úxr   r   r   Ú<lambda>   ó    ztest_axes.<locals>.<lambda>é   )Úaxesr   zf(x)c                 S   s   | S )Nr   )Úzr   r   r   r      r   éþÿÿÿiöÿÿÿé
   zRe(z)zIm(z))Ú
matplotlibÚ__version__ÚsplitÚImportErrorÚpylabÚprintZfigureZadd_subplotr   r   ZplotZ
get_xlabelÚAssertionErrorZ
get_ylabelZcplot)r   Úversionr   Zfigr   Úctxr   r   r   Ú	test_axes	   s,    

 r    N)Ú__doc__Zmpmathr   r   r    r   r   r   r   Ú<module>   s   