
    ^j                     H    d dl Zd dlmZ d dlmZ d Zd Zd Z	d Z
d Zd Zy)	    N)assert_array_equalc                  x    t        j                         } | j                  ddgddg      }|j                          y )N      )pltgcastemremove)axsts     j/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/matplotlib/tests/test_container.pytest_stem_remover      s.    	B	!Q!Q	 BIIK    c                     t        j                         } | j                  dgdg      }|j                          | j                  dgdgd      }|j                          | j                  dgdgd      }|j                          | j                  dgdgdgd      }|j                          | j                  dgdgd      }|j                          y )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                      t        j                  t        j                  d      t        j                  j                  d      d       t        j                          y )N
   r   )label)r   barnparangerandomrandlegend r   r   test_nonstring_labelr"   #   s0    GGBIIbM299>>"-Q7JJLr   c                     t        j                         \  } }g d}t        j                  g d      }t        j                  g d      }|j	                  |||      }t        |j                  |       t        |j                  |       t        |j                  ||z          |j                  |||      }t        |j                  |       t        |j                  |       t        |j                  ||z          y )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sGG4Iy1137y(('2y~~w'89W73Iy1137y(('2y~~w'89r   c                  J   t        j                         \  } }|j                  ddgddgd      }|j                  |ddg       t	        |j
                        dk(  sJ t	        |j                        d	k(  sJ |j                          |j
                  rJ |j                  rJ y )
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                      t        j                         \  } }|j                  ddgddgdd       \  }}}t        |      dk(  sJ t	        |t
              sJ |rJ t        |      dk(  sJ y )Nr   r&   r5   r   r6   )r7   r8   labeldistance)r   r)   r<   r>   
isinstancelist)r/   r   wedgesr@   	autotextss        r   #test_piecontainer_unpack_backcompatrH   F   s{    llnGC!vv	
Au~y  &  NFE9 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   