
    
3j                     H    S SK rS SKJr  S SKJr  S rS rS r	S r
S rS rg)	    N)assert_array_equalc                  z    [         R                  " 5       n U R                  SS/SS/5      nUR                  5         g )N      )pltgcastemremove)axsts     Y/home/wildlama/miniconda3/lib/python3.13/site-packages/matplotlib/tests/test_container.pytest_stem_remover      s.    	B	!Q!Q	 BIIK    c                     [         R                  " 5       n U R                  S/S/5      nUR                  5         U R                  S/S/SS9nUR                  5         U R                  S/S/SS9nUR                  5         U R                  S/S/S/SS9nUR                  5         U R                  S/S/SS9nUR                  5         g )Nr   )xerrr   )yerr)r   r   none)fmt)r   r   errorbarr
   )r   ebs     r   test_errorbar_remover      s    
 
B	aS1#	BIIK	aS1#A	&BIIK	aS1#A	&BIIK	aS1#QCa	0BIIK	aS1#6	*BIIKr   c                      [         R                  " [        R                  " S5      [        R                  R                  S5      SS9  [         R                  " 5         g )N
   r   )label)r   barnparangerandomrandlegend r   r   test_nonstring_labelr"   #   s0    GGBIIbM299>>"-Q7JJLr   c                     [         R                  " 5       u  p/ SQn[        R                  " / SQ5      n[        R                  " / SQ5      nUR	                  X$US9n[        UR                  U5        [        UR                  U5        [        UR                  X4-   5        UR                  X$US9n[        UR                  U5        [        UR                  U5        [        UR                  X4-   5        g )N)r   r      )r         )r   r&   r$   )bottom)left)
r   subplotsr   arrayr   r   position_centersbottomstopsbarh)figr   posr,   heights	containers         r   1test_barcontainer_position_centers__bottoms__topsr3   )   s    llnGC
Chhy!Ghhy!GsG4Iy1137y(('2y~~w'8973Iy1137y(('2y~~w'89r   c                  \   [         R                  " 5       u  pUR                  SS/SS/SS9nUR                  USS/5        [	        UR
                  5      S:X  d   e[	        UR                  5      S	:X  d   eUR                  5         UR
                  (       a   eUR                  (       a   eg )
Nr   r&   foor   %1.0f%%)labelsautopctbazqux   )r   r)   pie	pie_labellenpatchestextsr
   )r/   r   r<   s      r   test_piecontainer_removerA   :   s    llnGC
&&!Q	&
BCLLuen%rzz?arxx=AJJLzz>xx<xr   c                      [         R                  " 5       u  pUR                  SS/SS/SS S9u  p#n[        U5      S:X  d   e[	        U[
        5      (       d   eU(       a   e[        U5      S:X  d   eg )Nr   r&   r5   r   r6   )r7   r8   labeldistance)r   r)   r<   r>   
isinstancelist)r/   r   wedgesr@   	autotextss        r   #test_piecontainer_unpack_backcompatrH   F   sz    llnGC!vv	
Au~y  &  NF9 v;!eT""""9y>Qr   )numpyr   numpy.testingr   matplotlib.pyplotpyplotr   r   r   r"   r3   rA   rH   r!   r   r   <module>rM      s,     , .:"	r   