o
    h,                     @   sL   d dl mZ d dlmZ d dlZdd Zdd Zdd Zdd	 Z	d
d Z
dS )    Nc                  C   sH   t 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)gs r   r/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/matplotlib/tests/test_gridspec.py
test_equal   s   (r	   c                   C   D   t t tjddg dd W d   dS 1 s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   r   r   test_width_ratios      "r   c                   C   r
   )r   r   r   )height_ratiosNr   r   r   r   r   test_height_ratios   r   r   c                  C   sN   t dddddf } t| dksJ t jd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)ssr   r   r   	test_repr   s   r   c                  C   s   t dd\} }tjdd|d  d}| |d  ks J tjtdd tjdd|d d}W d    n1 s<w   Y  tjtdd tjdd|d}W d    d S 1 s\w   Y  d S )Nr   r   r   )subplot_specz%subplot_spec must be type SubplotSpec)match)	pltsubplotsr   GridSpecFromSubplotSpecget_subplotspecget_topmost_subplotspecr   r   	TypeError)figaxsr   r   r   r   test_subplotspec_args)   s   
"r$   )matplotlib.gridspecr   matplotlib.pyplotpyplotr   r   r	   r   r   r   r$   r   r   r   r   <module>   s    		