
    g                         d dl Zd dlZd dlmZ d dlmZmZ	m
Z ej                  j                  d       edg      d               Zy)    N)check_figures_equal)collectionspatchespathcairopng)
extensionsc                 r   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!                  |
       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)fig_testfig_refstarcirclevertsr   	cut_star1	cut_star2axpatchcols              `/var/www/dash_apps/app1/venv/lib/python3.12/site-packages/matplotlib/tests/test_backend_cairo.pytest_patch_alpha_coloringr2   
   sv    ::''*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   