
    h                         S SK rS SKrS SKJr  S SKJrJr	J
r  \R                  R                  S5      \" S/S9S 5       5       rg)    N)check_figures_equal)collectionspatchespathcairopng)
extensionsc                 j   [         R                  R                  S5      n[         R                  R                  5       n[        R
                  " UR                  UR                  SSS2   /5      n[        R
                  " UR                  UR                  /5      n[         R                  " XE5      n[         R                  " US-   U5      nUR                  5       nUR                  SS/5        UR                  SS/5        [        R                  " USSSS	S
9n	UR                  U	5        [        R                  " USSSS	S
9n	UR                  U	5        U R                  5       nUR                  SS/5        UR                  SS/5        [        R                  " Xg/SSSS	S9n
UR!                  U
5        g)zz
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              U/var/www/html/env/lib/python3.13/site-packages/matplotlib/tests/test_backend_cairo.pytest_patch_alpha_coloringr2   
   sr    ::''*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    )numpyr   pytestmatplotlib.testing.decoratorsr   
matplotlibr   r$   r   r!   r   r   markbackendr2    r3   r1   <module>r;      sL      =E E W($ ) $r3   