o
    ÞÁg  ã                   @   sT   d dl Zd dlZd dlmZ d dlmZmZ	m
Z ej d¡edgddd„ ƒƒZdS )	é    N)Úcheck_figures_equal)ÚcollectionsÚpatchesÚpathÚcairoÚpng)Ú
extensionsc                 C   s
  t j d¡}t j ¡ }t |j|jddd… g¡}t |j|jg¡}t  ||¡}t  |d |¡}| ¡ }| 	ddg¡ | 
ddg¡ tj|dddd	d
}	| |	¡ tj|dddd	d
}	| |	¡ |  ¡ }| 	ddg¡ | 
ddg¡ tj||gdddd	d}
| |
¡ dS )z†
    Test checks that the patch and collection are rendered with the specified
    alpha values in their facecolor and edgecolor.
    é   Néÿÿÿÿé   é   é   Údashdot)r   r   r   g      à?)r   r   r   g      è?)Ú	linewidthÚ	linestyleÚ	facecolorÚ	edgecolor)r   Ú
linestylesr   r   )ÚmpathÚPathÚunit_regular_starÚunit_circleÚnpÚconcatenateÚverticesÚcodesÚsubplotsÚset_xlimÚset_ylimÚmpatchesÚ	PathPatchÚ	add_patchÚmcollectionsÚPathCollectionÚadd_collection)Úfig_testÚfig_refÚstarÚcircleÚvertsr   Ú	cut_star1Ú	cut_star2ÚaxÚpatchÚcol© r/   úa/home/ubuntu/cloudmapper/venv/lib/python3.10/site-packages/matplotlib/tests/test_backend_cairo.pyÚtest_patch_alpha_coloring
   s<   
ý
ý

ýr1   )Únumpyr   ÚpytestÚmatplotlib.testing.decoratorsr   Ú
matplotlibr   r"   r   r   r   r   ÚmarkÚbackendr1   r/   r/   r/   r0   Ú<module>   s    

