| Server IP : 35.80.110.71 / Your IP : 216.73.217.120 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 : |
�
lf� � �D � d dl Zd dlmZ d dlmZ d dlmZ d dl
mZ d dlm
Z
edgd�� d� � Z edgdd �
� d� � Z edg� d
� � Z edg� d� � Zd� Zd� Z edgdd �� d� � Z edgddgd�� d� � Z edgd�� d� � Zy)� N)�image_comparison)�Path�patheffect1T)�remove_textc � � t j � } | j ddgddgg� | j dddt ddd� � d
dt j dd�
� g�� }|j j t j dd�
� t j � g� t j dd�
� g}| j dd|�� y )N� � � �test)� �?r )� r z->�angle3)�
arrowstyle�connectionstyle�lw� �center�w�� linewidth�
foreground)�
arrowprops�size�ha�path_effects� T�-)� linestyler )�plt�subplot�imshow�annotate�dictr �
withStroke�arrow_patch�set_path_effects�Stroke�Normal�grid)�ax1�txt�pes �C/usr/lib/python3/dist-packages/matplotlib/tests/test_patheffects.py�test_patheffect1r.
s� � �
�+�+�-�C��J�J��A���A��� �
�,�,�v�x��"&�$�7?�A�#G��8�%1�%<�%<�q�HK�&M� %N� � O�C� �O�O�$�$�l�&9�&9�A�EH�'J�&2�&9�&9�&;�&=� >� �
!�
!�A�#�
>� ?�B��H�H�T�S�r�H�2� �patheffect2�mpl20)r �stylec � � t j � } t j d� j d� }| j |d�� | j
|d�� }t j |j t j dd� � g�
� | j |dd�
� }t j |t j dd� � g�
� y )N� )r r �nearest)�
interpolation�k��colorsr
r r �r z%2.0fT)�fmt�use_clabeltext)r r �np�arange�reshaper! �contour�setp�collectionsr r$ �clabel)�ax2�arr�cntr�clblss r- �test_patheffect2rH s� � � �+�+�-�C�
�)�)�B�-�
�
��
'�C��J�J�s�)�J�,��;�;�s�3�;�'�D��H�H�T�
�
�'�2�2�Q�>A�C� D�E�
�J�J�t���J�>�E��H�H�U�'�2�2�Q�>A�C� D�Er/ �patheffect3c �` � t j g d�dd�� \ } | j t j � t j
� g� t j dt j dd�� g� � t j | gd
gdd�
� }|j j t j � g� t j ddddddd��� }t j dd�� t j dd�� g}|j |� |j � j |� t j ddd�� t j ddd �!� g}t j � j d"d#d$d%d&d'�(� }|j |� y ))N)r r
r � r
zo-brK )r ztesting$^{123}$r �rr r: z
Line 1$^2$Tz
upper left)�fancybox�locr r
z Drop test�whitezcircle,pad=0.1�red)�boxstyle�color)rR �bboxg @r7 )� ����blue)�shadow_rgbFace)rK ����xxxx�gray)�offset�hatch� facecolor�blackg�������?)� edgecolorr] r g{�G�z�?g�������?zHatch shadow�K i� r )�fontsize�weight�va)r �plotr&