
    ^j                         d dl Zd dlZd dlmZ d dlmZ d dlm	Z
mZmZ ej                  j!                  d       e       d               Zy)    N)check_figures_equal)collectionspatchespathcairoc                    t         j                  j                  d      }t         j                  j                         }t	        j
                  |j                  |j                  ddd   g      }t	        j
                  |j                  |j                  g      }t        j                  ||      }t        j                  |dz   |      }|j                         }|j                  ddg       |j                  ddg       t        j                  |dddd	
      }	|j                  |	       t        j                  |dddd	
      }	|j                  |	       | j                         }|j                  ddg       |j                  ddg       t        j                  ||gdddd	      }
|j!                  |
       t#        j$                  |       t#        j$                  |        y)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pltfigure)fig_testfig_refstarcirclevertsr   	cut_star1	cut_star2axpatchcols              n/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/matplotlib/tests/test_backend_cairo.pytest_patch_alpha_coloringr2      s    ::''*DZZ##%FNNFOOT]]4R4-@ABENNFLL$**5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C c JJwJJx    )numpyr   pytestmatplotlib.pyplotpyplotr%   matplotlib.testing.decoratorsr   
matplotlibr   r"   r   r   r   r   markbackendr2    r3   r1   <module>r=      sK       =E E W(  (r3   