| Server IP : 35.80.110.71 / Your IP : 216.73.216.170 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/matplotlib/tests/__pycache__/ |
Upload File : |
�
G8�c � � � d dl Zd dlZd dlmZ d dlmZmZ m
Z ej j d� edg�� d� � � Zy)� N)�check_figures_equal)�collections�patches�path�cairo�png)�
extensionsc �r � t j j d� }t j j � }t j
|j |j ddd� g� }t j
|j |j g� }t j ||� }t j |dz |� }|j � }|j ddg� |j ddg� t j |dddd �
� } |j | � t j |dddd �
� } |j | � | j � }|j ddg� |j ddg� t j ||gdddd �� }
|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 �E/usr/lib/python3/dist-packages/matplotlib/tests/test_backend_cairo.py�test_patch_alpha_coloringr2
sv � � �:�:�'�'��*�D�
�Z�Z�
#�
#�
%�F��N�N�F�O�O�T�]�]�4�R�4�-@�A�B�E��N�N�F�L�L�$�*�*�5�6�E��
�
�5�%�(�I��
�
�5�1�9�e�,�I�
� � � �B��K�K��Q����K�K��Q������y�)*�i�)7�)8�
:�E� �L�L������y�)*�i�)7�)8�
:�E� �L�L���
� � � �B��K�K��Q����K�K��Q���
�
%�
%�y�)�&<�01�i�0>�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