o
    i                     @   sR   d dl Zd dlmZ d dlmZ d dlmZ d dl	m
Z
 edgdddd	 ZdS )
    N)image_comparison)Bbox)clip_line_to_rectzclip_path.pngdefault)stylec                  C   s  t g d} t t| }t \}}|j| |dd tdddd}tj	|j
|j|jdd	d
d}|| t| ||\}}|D ]\}}	|j||	ddd t||	D ]\}
}||
|s_J qSqAtg d}|D ]}t|}|D ]\\}}}||g|g| qqqid S )N)g                 r   r
   r   r	   r   r      r
   )lwr   r   r   g      )@nonekz--)	facecolor	edgecolorlsC1)r   color)C3oC2xr   r   )nparrayarangelenpltsubplotsplotr   from_extents	Rectanglep0widthheight	add_patchr   zipcontainsiternext)xyfigaxbboxrectclipped_linestickslxlypxpyccctttccxxyyaa r;   g/var/www/edux/Edux_v2/venv/lib/python3.10/site-packages/mpl_toolkits/tests/test_axisartist_clip_path.pytest_clip_path	   s,   
r=   )numpyr   matplotlib.pyplotpyplotr   matplotlib.testing.decoratorsr   matplotlib.transformsr   !mpl_toolkits.axisartist.clip_pathr   r=   r;   r;   r;   r<   <module>   s    