OwlCyberSecurity - MANAGER
Edit File: test_backend_cairo.cpython-38.pyc
U ��]� � @ s� d dl Zd dlmZ d dlZd dlZd dlZd dlZd dl Z d dl mZ d dl mZ d dlZd dlmZmZmZ e j�d�edgd�dd � ��ZdS ) � N)�BytesIO)�check_figures_equal)�collections�patches�pathZcairoZpng)� extensionsc C s t j�d�}t j�� }t�|j|jddd� g�}t�|j|jg�}t �||�}t �|d |�}|�� }|� ddg� |� ddg� tj|dddd d �} |� | � tj|dddd d �} |� | � | �� }|� ddg� |� ddg� tj||gdddd d�} |�| � dS )z� Test checks that the patch and collection are rendered with the specified alpha values in their facecolor and edgecolor. � N���� � � Zdashdot)r r r g �?)r r r g �?)� linewidthZ linestyle� facecolor� edgecolor)r Z linestylesr r )�mpath�PathZunit_regular_starZunit_circle�npZconcatenateZvertices�codesZsubplotsZset_xlimZset_ylim�mpatchesZ PathPatchZ add_patch�mcollectionsZPathCollectionZadd_collection)Zfig_testZfig_refZstarZcircleZvertsr Z cut_star1Z cut_star2ZaxZpatch�col� r �E/usr/lib/python3/dist-packages/matplotlib/tests/test_backend_cairo.py�test_patch_alpha_coloring sB � � �r )Znumpyr �ior �osZtempfile�warningsZxml.parsers.expatZxmlZpytestZmatplotlib.pyplotZpyplotZpltZmatplotlib.testing.decoratorsr Z matplotlibr r r r r r ZmarkZbackendr r r r r �<module> s