+
    i,                     D    ^ RI Ht ^ RIHt ^ RItR tR tR tR t	R t
R# )    Nc                      \         P                  ! ^^4      p V R,          V R,          8X  g   Q hV R,          V R,          8X  g   Q hR# )   N)r   r   ):NNNr   )gridspecGridSpec)gss    ~/Users/tonyclaw/.openclaw/workspace/skills/math-calculator/venv/lib/python3.14/site-packages/matplotlib/tests/test_gridspec.py
test_equalr	      s@    			1a	 Bd8r$xd8r$x    c                     \         P                  ! \        4      ;_uu_ 4        \        P                  ! ^^. ROR7       RRR4       R#   + '       g   i     R# ; i)U
Addresses issue #5835.
See at https://github.com/matplotlib/matplotlib/issues/5835.
)width_ratiosNr         pytestraises
ValueErrorr   r    r
   r   test_width_ratiosr      s4    
 
z	"	"!QY7 
#	"	"	"   A		A	c                     \         P                  ! \        4      ;_uu_ 4        \        P                  ! ^^. ROR7       RRR4       R#   + '       g   i     R# ; i)r   )height_ratiosNr   r   r   r
   r   test_height_ratiosr      s4    
 
z	"	"!Qi8 
#	"	"	"r   c                      \         P                  ! ^^4      R,          p \        V 4      R8X  g   Q h\         P                  ! ^^RRR7      p \        V 4      R8X  g   Q hR# )r   zGridSpec(3, 3)[2:3, 1:3])r   r   z9GridSpec(2, 2, height_ratios=(3, 1), width_ratios=(1, 3))N)r   :r   r   N)r   r   )r   r   )r   r   repr)sss    r   	test_reprr      sd    			1a	 	(B81111			1a)/(.
0B 8CD D Dr
   c                  `   \         P                  ! ^^4      w  r\        P                  ! ^^V^ ,          P	                  4       R7      pVP                  4       V^ ,          P	                  4       8X  g   Q h\        P                  ! \        RR7      ;_uu_ 4        \        P                  ! ^^V^ ,          R7      pRRR4       \        P                  ! \        RR7      ;_uu_ 4        \        P                  ! ^^VR7      pRRR4       R#   + '       g   i     LX; i  + '       g   i     R# ; i)r   )subplot_specz%subplot_spec must be type SubplotSpec)matchN)	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	P--aQH 
Q	y(O	P	P--aE 
Q	P 
Q	P	P	P	Ps   !D	%D	D	D-	)matplotlib.gridspecr   matplotlib.pyplotpyplotr"   r   r	   r   r   r   r*   r   r
   r   <module>r.      s)    &   89D	Fr
   