| Server IP : 35.80.110.71 / Your IP : 216.73.216.143 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�cC! � �| � d dl Z d dlZd dlZd dlZd dlmZ d dlm Z d� Z
ej j e j � dk7 d�� d� � Zej j e j � dk7 d�� d � � Zd
� Zd� Zd� Zd
� Z e dg� d� � Z e dg� d� � Z e dgd�� d� � Zd� Z e dgd�� d� � Z e dgd�� d� � Z e dgd�� d� � Z e dgd�� d� � Z e dgd�� d � � Zd!� Zd"� Zd#� Z e d$gd�� d%� � Z d&� Z!d'� Z"y)(� N)�pyplot)�image_comparisonc �L � t j t j ddt j z d� t j ddt j z d� � \ }}t j |� }t j
|� } | j ||fi |��}|S )Nr � � )�np�meshgrid�arange�pi�cos�sin�quiver)�ax�kwargs�X�Y�U�V�Qs �>/usr/lib/python3/dist-packages/matplotlib/tests/test_quiver.py�draw_quiverr sy � �
�;�;�r�y�y��A����I�q�1��y�y��A����I�q�1�3�D�A�q�
���q� �A�
���q� �A��� � �!�Q�!�&�!�A��H� �CPythonzRequires CPython)�reasonc � � t j � \ } }t |� }|j }|j � ~t j |� dk( sJ �y )Nr )�plt�subplotsr r �remove�sys�getrefcount)�figr r �ttXs r �test_quiver_memory_leakr# sH � � �l�l�n�G�C���B��A�
�#�#�C��H�H�J� ��?�?�3��1�$�$�$r c
� � t j � \ } }t |� }|j |dddddddi�� }t j
|� d k( sJ �|j
� t j
|� dk( sJ �y )
N� �?�q=
ףp�?r �$2 \frac{m}{s}$�W�weight�bold��labelpos�fontproperties� )r r r � quiverkeyr r r )r! r r �qks r �test_quiver_key_memory_leakr1 # s~ � � �l�l�n�G�C���B��A� ���a��d�A�'9�"�&.��%7�
�
9�B� �?�?�2��!�#�#�#��I�I�K��?�?�2��!�#�#�#r c �* � ddg} t j t d�� 5 t j | � d d d � t j t d�� 5 t j | | | | | | � d d d � y # 1 sw Y �HxY w# 1 sw Y y xY w)Nr r z/takes 2-5 positional arguments but 1 were given��matchz/takes 2-5 positional arguments but 6 were given)�pytest�raises� TypeErrorr r )r s r �test_quiver_number_of_argsr8 2 s� � �
�A��A� ����C�
E� � �
�
�1�
��
����C�
E� %� �
�
�1�a��A�q�!�$�%� %� � ��%� %�s �A=�B �=B� Bc �V � ddg} g d�}t j t d�� 5 t j | || | � d d d � t j t d�� 5 t j | | || � d d d � t j t d�� 5 t j | | | |� d d d � t j t d�� 5 t j | | | | |� d d d � y # 1 sw Y ��xY w# 1 sw Y ��xY w# 1 sw Y �_xY w# 1 sw Y y xY w) Nr r )r r r. z?X and Y must be the same size, but X.size is 2 and Y.size is 3.r3 zMArgument U has a size 3 which does not match 2, the number of arrow positionszMArgument V has a size 3 which does not match 2, the number of arrow positionszMArgument C has a size 3 which does not match 2, the number of arrow positions)r5 r6 �
ValueErrorr r )�X2�X3s r �test_quiver_arg_sizesr= >