
    m7h,                     B    d dl mZ d dlmZ d dlZd Zd Zd Zd Z	d Z
y)    Nc                  t    t        j                  dd      } | d   | d   k(  sJ | d d df   | d d df   k(  sJ y )N      )r   r   r   )gridspecGridSpec)gss    `C:\Users\ashis\OneDrive\Desktop\poolpix\venv\Lib\site-packages\matplotlib/tests/test_gridspec.py
test_equalr
      sH    			1a	 Bd8r$xad8r!Q$x    c                      t        j                  t              5  t        j                  ddg d       ddd       y# 1 sw Y   yxY w)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	"!QY7 
#	"	"	   >Ac                      t        j                  t              5  t        j                  ddg d       ddd       y# 1 sw Y   yxY w)r   r   r   )height_ratiosNr   r   r   r	   test_height_ratiosr      s.    
 
z	"!Qi8 
#	"	"r   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 y )	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      sl    			1a	 AaC	(B81111			1a)/(.
0B 8CD D Dr   c                     t        j                  dd      \  } }t        j                  dd|d   j	                               }|j                         |d   j	                         k(  sJ t        j                  t        d      5  t        j                  dd|d         }d d d        t        j                  t        d      5  t        j                  dd|      }d d d        y # 1 sw Y   FxY w# 1 sw Y   y xY w)Nr   r   r   )subplot_specz%subplot_spec must be type SubplotSpec)match)	pltsubplotsr   GridSpecFromSubplotSpecget_subplotspecget_topmost_subplotspecr   r   	TypeError)figaxsr   s      r	   test_subplotspec_argsr*   )   s    ||Aq!HC		)	)!Q7:1v7M7M7O
QB%%'3q6+A+A+CCCC	y(O	P--aQH 
Q	y(O	P--aE 
Q	P 
Q	P	P	Ps   C%C1%C.1C:)matplotlib.gridspecr   matplotlib.pyplotpyplotr"   r   r
   r   r   r   r*   r   r   r	   <module>r.      s)    &   89D	Fr   