+
     ]i  c            
       s   ^ RI Ht ^ RIt^ RIt^ RIHt ^ RIHt	 ^ RI
Ht ^ RIHt ^ RIHt ]! R.RRR/R	7      R
 4       t]! R.RR/]P&                  ! 4       R8X  d   ^ MRR7      R 4       t]! R.RR/RR7      R 4       t]! R.RR]! RRR7      R7      R 4       tR t]! R.RRR/R	7      R 4       t]! R.RRRR/R7      R 4       tR  tR! tR" t]! R#.R$.RRR/R%7      R& 4       tR# )'    )BytesION)image_comparison)FuncFormatterZbbox_inches_tightTbbox_inchestight)remove_textsavefig_kwargc            
      s   . RO. RO. RO. RO. RO.p R.^,          ;r\        V 4      p\        P                  ! \        V4      4      R,           p. pRp\        P                  ! \        V4      4      p\        P
                  ! ^^4      w  r\        V4       F@  p
V	P                  W@V
,          WgRRR7       WpV
,          ,           pVP                  R.4       KB  	  \        P                  ! . 4       \        P                  ! ^ ^4       \        P                  ! R.^,          RR7       VP                  R.^,          RRR	7       VP                  4        \        P                  ! WRVR
R7       R# )R  g333333?g?ZedgeZb)bottomZalignZcolor)locz
lower leftZbbox_to_anchorr   r
   )ZcellTextZ	rowLabelsZ	colLabelsr   N)r   iب i{% it i}  )iv  i i0 i ir )i/\ i: iS i= i5	 )iO2 i? iL i i )ia  i i|< iD i-  )g333333?皙?)r    r   )ZlennparangeZzerospltsubplotsZrangeZbarappendZxticksZxlimlegendZreverseZtable)dataZ
col_labelsZ
row_labelsZrowsZindZ	cell_textwidthZyofffigaxZrows              G/usr/lib64/python3.14/site-packages/matplotlib/tests/test_bbox_tight.pytest_bbox_inches_tightr      s    21213	5D  "dQh&Jt9D
))C
O
$s
*CIE88C
O$Dll1a GCT{
sIusK3i"  JJrNHHQNJJtaxZ(JJtaxlJCIIy*    Z bbox_inches_tight_suptile_legendZx86_64g{Gz?)r   tolc                  s   \         P                  ! \        P                  ! ^
4      RR7       \         P                  ! R
RR7       \         P
                  ! R4       \         P                  ! R4       R p \         P                  ! 4       P                  P                  \        V 4      4       \         P                  ! R4       R	# )
   za straight line)Zlabelz
upper leftr   z
Axis titlezFigure titlec                 s<    \        V 4      ^8X  d   R# \        V 4      # )   zThe number 4)ZintZstr)yZposs   &&r   y_formatterZ:test_bbox_inches_tight_suptile_legend.<locals>.y_formatter8   s    q6Q;!q6Mr   zX axisN)g?   )r   plotr   r   r   ZtitlesuptitlegcayaxisZset_major_formatterr   Zxlabel)r   s    r   %test_bbox_inches_tight_suptile_legendr%   .   sq     HHRYYr]"34JJhL9IIlLL 
 GGIOO''k(BCJJxr   z)bbox_inches_tight_suptile_non_default.png皙?c                  s\    \         P                  ! 4       w  rV P                  R RRR7       R# )ZBooo      ?g?)Zxr   N)r   r   r"   r   r        r   +test_bbox_inches_tight_suptitle_non_defaultr*   B   s#     llnGCLL3#L&r   zbbox_inches_tight_layout.pngZmpl20layoutr   
pad_inches)r   Zstyler   c                  s    \         P                  ! R R7      w  rV P                  4       P                  RR7       VP	                  R4       R# )Zconstrained)r+   r'   )Zh_padequalN)r   r   Zget_layout_engineset
set_aspectr(   r)   r   )test_bbox_inches_tight_layout_constrainedr1   J   s:     ll-0GCc*MM'r   c                 sj    \         P                  ! 4       w  rVP                  V R ,          RRR7       R# )zfoo.pngr   r+   r,   N)r   r   savefig)Ztmp_pathr   r   s   &  r   ,test_bbox_inches_tight_layout_notconstrainedr3   S   s(     llnGCKK9$'hKOr   Zbbox_inches_tight_clippingc            	      sf   \         P                  ! \        P                  ! ^
4      \        P                  ! ^
4      4       \         P                  ! 4       p V P                  ^ ^4       V P                  ^ ^4       \        P                  ! RR.^d^dV P                  RRR7      p\        P                  P                  ^4      P                  4       pV;P                  R,          un        VP                  W P                   R7       \         P"                  ! 4       P$                  P'                  V4       R# )r   Zbluer'   )	transformZ	facecolorZalphag      ?)r4   Ni)r   Zscatterr   r   r#   set_xlimZset_ylimmpatchesZ	RectangleZ	transDatampathZPathZunit_regular_starZdeepcopyZverticesZset_clip_pathZ	transAxesZgcfZartistsr   )r   Zpatchpaths      r   test_bbox_inches_tight_clippingr9   Z   s    
 KK		"ryy}-	BKK1KK1 Sz3)+)/s<E ::''*335DMMTM	5GGIU#r   Zbbox_inches_tight_rasterg333333?)r   r   r   c                 s^    \         P                  ! 4       w  rVP                  RR.RR7       R# )z$Test rasterization with tight_layoutg      ?g       @TZ
rasterizedN)r   r   r!   r(   r)   r   test_bbox_inches_tight_rasterr;   o   s%     llnGCGGS#J4G(r   c                  s    \         P                  ! 4       w  rVP                  R ^ \        R4      3R7       VP	                  4        V P                  \        4       RRR7       R# )r	   Znan)Zxyr   png)r   formatN)r   r   ZannotateZfloatset_axis_offr2   r   r(   r)   r   test_only_on_non_finite_bboxr?   w   sF    llnGCKK5<(K)OOKK	wuK=r   c                  sr   \         P                  ! 4       w  rVP                  \        P                  ! ^4      P                  R4      4       VP                  RR7       \        4       pV P                  VRR7       VP                  ^ 4       \         P                  ! V4      P                  w  r4pWC8  g   Q hR# )r   )Zylimr   )r   N)   r@   )r    r&   )r   r   Z
pcolorfastr   r   reshaper/   r   r2   seekZimreadshape)r   r   ZbufZheightr   Z_s         r   test_tight_pcolorfastrD      s    llnGCMM"))A,&&v./FFF
)CKKK)HHQKzz#,,F1 >>r   c                  s$   ^ RI Hp  ^
^r!^dp\        P                  ! RW1V,          W#,          3R7      pVP	                  R4      pVP                  4        VP                  P                  R4       VP                  P                  R4       \        P                  ! W,          4      P                  W!4      pVP                  VRR7       VP                  \        4       R^ RR7       \        4       pVP                  VR^ R	7       VP                  ^ 4       \        P                   ! V P#                  V4      4      pVR,          ^8H  P%                  4       '       g   Q hVR,          ^8H  P%                  4       '       d   Q hVP&                  R8X  g   Q hR
# )r    )ImageF)ZframeondpiZfigsizeTr:   r   Zpdf)r   r-   r=   r,   N)r    r    r    r    )NNNrG      )rG   rG   :NrH   N)i   r   r   )ZPILrE   r   ZfigureZadd_axesr>   ZxaxisZset_visibler$   r   r   rA   Zimshowr2   r   rB   ZasarrayZopenZallrC   )	rE   Zx_sizeZy_sizerF   r   r   r   ZoutZims	            r   test_noop_tight_bboxrI      s3   !F
C
**USj&*5M
NC	l	#BOOHHHH99V_%--f=DIIdtI$
 KK	w1UKK
)CKKQK7HHQK	EJJsO	$BwK3##%%%%8#((****88z!!!r   Zbbox_inches_fixed_aspectr<   )Z
extensionsr   r   c                  s   \         P                  ! R R/4      ;_uu_ 4        \         P                  ! 4       w  rVP                  ^ ^.4       VP	                  ^ ^4       VP                  R4       RRR4       R#   + '       g   i     R# ; i)zfigure.constrained_layout.useTr.   N)r   Z
rc_contextr   r!   r5   r0   r(   r)   r   test_bbox_inches_fixed_aspectrJ      s_     
8$?	@	@,,.
A
Aq
g	 
A	@	@	@s   AA99B
	)Zior   ZplatformZnumpyr   Zmatplotlib.testing.decoratorsr   Zmatplotlib.pyplotZpyplotr   Zmatplotlib.pathr8   r7   Zmatplotlib.patchesZpatchesr6   Zmatplotlib.tickerr   r   Zmachiner%   r*   Zdictr1   r3   r9   r;   r?   rD   rI   rJ   ) r   r   <module>rK      sz      :   % + &'T!. 8::> 56!. 8#++-9atEE" >?!. 8''
 12 $X NPPP /0"='2JL$L$& -.D"='2JL)L)>
"8 -.E7"='2JLLr   