+
    ,i              
          ^ 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	7      R 4       tR tR tR  t]! R!.R".RRR/R#7      R$ 4       tR# )%    )BytesION)image_comparison)FuncFormatterbbox_inches_tightTbbox_inchestight)remove_textsavefig_kwargc            
         . 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?edgeb)bottomaligncolor)locz
lower leftbbox_to_anchorr   r   )cellText	rowLabels	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   )lennparangezerospltsubplotsrangebarappendxticksxlimlegendreversetable)data
col_labels
row_labelsrowsind	cell_textwidthyofffigaxrows              B/usr/lib/python3/dist-packages/matplotlib/tests/test_bbox_tight.pytest_bbox_inches_tightr4      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*     bbox_inches_tight_suptile_legendx86_64g{Gz?)r
   tolc                     \         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)labelz
upper leftr   z
Axis titlezFigure titlec                 <    \        V 4      ^8X  d   R# \        V 4      # )   zThe number 4)intstr)yposs   &&r3   y_formatter:test_bbox_inches_tight_suptile_legend.<locals>.y_formatter8   s    q6Q;!q6Mr5   zX axisN)g?   )r   plotr   r   r%   titlesuptitlegcayaxisset_major_formatterr   xlabel)rB   s    r3   %test_bbox_inches_tight_suptile_legendrL   .   sq     HHRYYr]"34JJhL9IIlLL 
 GGIOO''k(BCJJxr5   z)bbox_inches_tight_suptile_non_default.png皙?c                  \    \         P                  ! 4       w  rV P                  R RRR7       R# )Booo      ?g?)xr@   N)r   r   rG   r0   r1   s     r3   +test_bbox_inches_tight_suptitle_non_defaultrS   B   s#     llnGCLL3#L&r5   zbbox_inches_tight_layout.pngmpl20layoutr   
pad_inches)r	   styler
   c                      \         P                  ! R R7      w  rV P                  4       P                  RR7       VP	                  R4       R# )constrained)rU   rP   )h_padequalN)r   r   get_layout_engineset
set_aspectrR   s     r3   )test_bbox_inches_tight_layout_constrainedr`   J   s:     ll-0GCc*MM'r5   c                 j    \         P                  ! 4       w  rVP                  V R ,          RRR7       R# )zfoo.pngr   rU   rV   N)r   r   savefig)tmp_pathr0   r1   s   &  r3   ,test_bbox_inches_tight_layout_notconstrainedrd   S   s(     llnGCKK9$'hKOr5   bbox_inches_tight_clippingc            	      f   \         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:   bluerP   )	transform	facecoloralphag      ?)rh   Ni)r   scatterr   r   rH   set_xlimset_ylimmpatches	Rectangle	transDatampathPathunit_regular_stardeepcopyverticesset_clip_path	transAxesgcfartistsr"   )r1   patchpaths      r3   test_bbox_inches_tight_clippingr|   Z   s    
 KK		"ryy}-	BKK1KK1 Sz3)+)/s<E ::''*335DMMTM	5GGIU#r5   bbox_inches_tight_rasterc                 ^    \         P                  ! 4       w  rVP                  RR.RR7       R# )z$Test rasterization with tight_layoutg      ?g       @T
rasterizedN)r   r   rE   rR   s     r3   test_bbox_inches_tight_rasterr   o   s%     llnGCGGS#J4G(r5   c                      \         P                  ! 4       w  rVP                  R ^ \        R4      3R7       VP	                  4        V P                  \        4       RRR7       R# )r   nan)xyr   png)r   formatN)r   r   annotatefloatset_axis_offrb   r   rR   s     r3   test_only_on_non_finite_bboxr   w   sF    llnGCKK5<(K)OOKK	wuK=r5   c                  r   \         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=   )ylimr   )r   N)   r   )r   rM   )r   r   
pcolorfastr   r   reshaper^   r   rb   seekimreadshape)r0   r1   bufheightr.   _s         r3   test_tight_pcolorfastr      s    llnGCMM"))A,&&v./FFF
)CKKK)HHQKzz#,,F1 >>r5   c                  $   ^ 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)frameondpifigsizeTr   r   pdf)r   rW   r   rV   N)r   r   rD   rD   )NNNr      )r   r   :Nr   N)   r:   r=   )PILr   r   figureadd_axesr   xaxisset_visiblerI   r   r   r   imshowrb   r   r   asarrayopenallr   )	r   x_sizey_sizer   r0   r1   r(   outims	            r3   test_noop_tight_bboxr      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!!!r5   bbox_inches_fixed_aspectr   )
extensionsr	   r
   c                     \         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   
rc_contextr   rE   rl   r_   rR   s     r3   test_bbox_inches_fixed_aspectr      s_     
8$?	@	@,,.
A
Aq
g	 
A	@	@	@s   AA99B
	)ior   platformnumpyr   matplotlib.testing.decoratorsr   matplotlib.pyplotpyplotr   matplotlib.pathr{   rq   matplotlib.patchespatchesrn   matplotlib.tickerr   r4   machinerL   rS   dictr`   rd   r|   r   r   r   r   r    r5   r3   <module>r      sx      :   % + &'T!. 8::> 56!. 8#++-9atEE" >?!. 8''
 12 $X NPPP /0"='2JL$L$& -."='2JL)L)>
"8 -.E7"='2JLLr5   