
    P/Ph                         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                         ZdS )    N)check_figures_equal)collectionspatchespathcairopng)
extensionsc                    t           j                            d          }t           j                                        }t	          j        |j        |j        ddd         g          }t	          j        |j        |j        g          }t          j        ||          }t          j        |dz   |          }|                                }|	                    ddg           |
                    ddg           t          j        |dddd	
          }	|                    |	           t          j        |dddd	
          }	|                    |	           |                                 }|	                    ddg           |
                    ddg           t          j        ||g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cols              c/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/matplotlib/tests/test_backend_cairo.pytest_patch_alpha_coloringr2   
   s    :''**DZ##%%FNFOT]44R4-@ABBENFL$*566E
5%((I
519e,,I 
				BKKQKKQy)*i)7)8: : :E LLy)*i)7)8: : :E LL 
				BKKQKKQ

%y)&<01i0>0?A A AC c    )numpyr   pytestmatplotlib.testing.decoratorsr   
matplotlibr   r$   r   r!   r   r   markbackendr2    r3   r1   <module>r;      s         = = = = = =E E E E E E E E E E W((($ $ )( $ $ $r3   