
     h                         d dl Z d dlmZmZmZ 	 d dlZdej        d<   d dlmZ	 dZ
n# e$ r dZ
Y nw xY wd dlmZmZmZmZmZmZ e j                            e
 d	           G d
 d                      ZdS )    N)assert_assert_array_equalsuppress_warningsAggbackendTF)delaunay_plot_2dvoronoi_plot_2dconvex_hull_plot_2dDelaunayVoronoi
ConvexHullzMatplotlib not available)reasonc                   (    e Zd Zg dZd Zd Zd ZdS )TestPlotting))r   r   )r      )r   r   )r   r   c                    t          j                    }t          | j                  }|j                                        }t                      5 }|                    d           t          ||	                                          }d d d            n# 1 swxY w Y   t          |j        |           t          ||u            t          ||	                                           d S N-The ishold function was deprecated in versionmessageax)pltfigurer   points	simplicescopyr   filterr   gcar   r   )selffigobjs_beforesuprs         _/var/www/html/Sam_Eipo/venv/lib/python3.11/site-packages/scipy/spatial/tests/test__plotutils.pytest_delaunayzTestPlotting.test_delaunay   s   jllt{##=%%''   	4CJJNJOOO 333A	4 	4 	4 	4 	4 	4 	4 	4 	4 	4 	4 	4 	4 	4 	4 	3=(333S++++++s   :BBBc                 t   t          j                    }t          | j                  }t	                      5 }|                    d           t          ||                                          }d d d            n# 1 swxY w Y   t          ||u            t          |           t          |d           d S )Nr   r   r   F)show_vertices)	r   r   r   r   r   r   r	   r   r   )r    r!   r"   r$   r%   s        r&   test_voronoizTestPlotting.test_voronoi!   s    jlldk""   	3CJJNJOOO		222A	3 	3 	3 	3 	3 	3 	3 	3 	3 	3 	3 	3 	3 	3 	3 	S5111111   :A<<B B c                 R   t          j                    }t          | j                  }t	                      5 }|                    d           t          ||                                          }d d d            n# 1 swxY w Y   t          ||u            t          |           d S r   )	r   r   r   r   r   r   r
   r   r   )r    r!   trir$   r%   s        r&   test_convex_hullzTestPlotting.test_convex_hull-   s    jll%%   	7CJJNJOOO#CCGGII666A	7 	7 	7 	7 	7 	7 	7 	7 	7 	7 	7 	7 	7 	7 	7 	SC     r+   N)__name__
__module____qualname__r   r'   r*   r.        r&   r   r      sL        )))F, , ,
2 
2 
2	! 	! 	! 	! 	!r3   r   )pytestnumpy.testingr   r   r   
matplotlibrcParamsmatplotlib.pyplotpyplotr   has_matplotlib	Exceptionscipy.spatialr   r	   r
   r   r   r   markskipifr   r2   r3   r&   <module>r?      s0    H H H H H H H H H H%*J	"######NN   NNN# # # # # # # # # # # # # # # #
 &/IJJ%! %! %! %! %! %! %! KJ%! %! %!s   ' 11