
    g                          d Z ddlmZmZ d ZdS )zj
Limited tests of the visualization module. Right now it just makes
sure that passing custom Axes works.

    )mpfpc                  0   	 dd l } | j                            d          d         }|                    d          d d         }d |D             ddgk     rt          dd l}n # t          $ r t          d           Y d S w xY w|                                }|                    d          }t          t          fD ]Q}|
                    d	 dd
g|           |                                dk    sJ |                                dk    sJ R|                                }|                    d          }t          t          fD ] }|                    d ddgddg|           !|                                dk    sJ |                                dk    sJ d S )Nr   -.   c                 ,    g | ]}t          |          S  )int).0_s     [/var/www/html/ai-engine/env/lib/python3.11/site-packages/mpmath/tests/test_visualization.py
<listcomp>ztest_axes.<locals>.<listcomp>   s    $$$qCFF$$$    c   z8
Skipping test (pylab not available or too old version)
o   c                     | dz  S )Nr   r
   )xs    r   <lambda>ztest_axes.<locals>.<lambda>   s
    1a4 r      )axesr   zf(x)c                     | S )Nr
   )zs    r   r   ztest_axes.<locals>.<lambda>   s    A r   i
   zRe(z)zIm(z))
matplotlib__version__splitImportErrorpylabprintfigureadd_subplotr   r   plot
get_xlabel
get_ylabelcplot)r   versionr    figr   ctxs         r   	test_axesr+   	   s   	(..s33A6--$$RaR($$G$$$"v--   JKKK ,,..C??3DBx + +!Qd333  C''''  F*****
,,..C??3DBx > >		++Awb		====??''''??''''''s   AA! !A>=A>N)__doc__mpmathr   r   r+   r
   r   r   <module>r.      sB            ( ( ( ( (r   