
    (?e                     2    d dl mZ d dlZd Zd Zd Zd ZdS )    Nc                      t          j        dd          } | d         | d         k    sJ | d d df         | d d df         k    sJ d S )N      )r   r   r   )gridspecGridSpec)gss    >lib/python3.11/site-packages/matplotlib/tests/test_gridspec.py
test_equalr
      s\    		1a	 	 Bd8r$xaaad8r!!!Q$x    c                      t          j        t                    5  t          j        ddg d           ddd           dS # 1 swxY w Y   dS )a
    Addresses issue #5835.
    See at https://github.com/matplotlib/matplotlib/issues/5835.
    r   r   r      )width_ratiosNpytestraises
ValueErrorr   r    r   r	   test_width_ratiosr      s    
 
z	"	" 8 8!QYYY77778 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8   AAAc                      t          j        t                    5  t          j        ddg d           ddd           dS # 1 swxY w Y   dS )r   r   r   )height_ratiosNr   r   r   r	   test_height_ratiosr      s    
 
z	"	" 9 9!Qiii88889 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9r   c                      t          j        dd          dddf         } t          |           dk    sJ t          j        dddd          } t          |           dk    sJ d S )	Nr   r   r   zGridSpec(3, 3)[2:3, 1:3])r   r   )r   r   )r   r   z9GridSpec(2, 2, height_ratios=(3, 1), width_ratios=(1, 3)))r   r   repr)sss    r	   	test_reprr      s    		1a	 	 AaC	(B8811111		1a)/(.
0 
0 
0B 88CD D D D D Dr   )matplotlib.gridspecr   r   r
   r   r   r   r   r   r	   <module>r       sk    & & & & & &      8 8 89 9 9D D D D Dr   