+
    xȇiw                        R t ^ RIt^ RIt^ RIt^ RIHu Ht ^ RI	H
t
HtHtHtHtHtHtHtHt ^ RIHt ^ RIHtHtHtHtHt ]P8                  ! R4      t]P8                  ! R4      t]P8                  ! R4      t^ RI t ^ RI!H"t" ]PF                  R R	 l4       t$]PJ                  ! R4      R
 4       t&R t']PP                  PS                  R]PT                  PV                  4      ]PP                  PS                  R]
! ]PX                  ! ^4      P[                  ^^4      4      ]! ].! ^4      4      .4      ]PP                  PS                  R]! ].! ^4      4      ]! R^R7      ]! R^R7      .4      R 4       4       4       t/ ! R R4      t0 ! R R4      t1]PF                  R 4       t2]PF                  R R l4       t3R t4R t5]PP                  PS                  RRR.RR.RR..4      R  4       t6]PP                  PS                  R. R)O. R*O. R+O.4      R! 4       t7]PP                  PS                  R"R,R-.R.R/.R0R1.R2R3..4      R# 4       t8]PP                  PS                  R"R).R4.R5.R6..4      R$ 4       t9R% t:R& t;R' t<R( t=R# )7z"Test cases for misc plot functionsN)		DataFrameIndexSeries	Timestamp
date_rangeinterval_rangeperiod_rangeplottingread_csv)_check_colors_check_legend_labels_check_plot_works_check_text_labels_check_ticks_props
matplotlibzmatplotlib.pyplotzmatplotlib.cmget_standard_colorsc                $    V ^8  d   QhR\         /#    returnr   )formats   "o/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/plotting/test_misc.py__annotate__r   (   s     ? ?i ?    c                *    \        V ! RRRR4      4      # )z"
The iris dataset as a DataFrame.
iodatacsvziris.csv)r
   )datapaths   &r   irisr!   '   s    
 HT65*=>>r   c                      \        R ^^./4      p \        P                  ! \        RR7      ;_uu_ 4        V P	                  4        RRR4       R#   + '       g   i     R# ; i)Az#matplotlib is required for plottingmatchN)r   pytestraisesImportErrorplotdfs    r   test_import_error_messager,   /   sA     
C!Q=	!B	{*O	P	P
	 
Q	P	P	Ps   AA 	c                     \         P                  P                  P                  p R p\        P
                  ! \        VR7      ;_uu_ 4        V ! R. . / R7       RRR4       Rp\        P
                  ! \        VR7      ;_uu_ 4        V ! R\        \        R7      RR./ R7       RRR4       V ! R\        4       R.R	R	R
RRR/R7      w  r#rEVR8X  g   Q hVR	8X  g   Q hVR8X  g   Q hVRR/8X  g   Q hV ! R\        \        R7      . / R7      w  r#rEVe   Q hVe   Q hVR8X  g   Q h\        V4      ^8X  g   Q hR#   + '       g   i     L; i  + '       g   i     L; i)z@Called plot accessor for type list, expected Series or DataFramer$    )backend_namer   argskwargsNz.should not be called with positional argumentsdtypelinexykindbargridFzpandas.plotting._matplotlib)r	   _corePlotAccessor_get_call_argsr&   r'   	TypeErrorr   objectr   len)funcmsgr5   r6   r7   r1   s         r   test_get_accessor_argsrB   8   s?   >>&&55D
LC	y	,	,"2Br: 
- ;C	y	,	,"6#7vtnUWX 
- [US&%7	A$ 8O88O85==fe_$$$2&!	A$ 99996>>v;"7 
-	, 
-	,s   D5E5E	E	r7   r   index
2020-01-01periodsc                 $   \         P                  4       w  r4W!n        / pV R9   d6   \        V\        4      '       d   \
        P                  ! V  R24       R^ R^/pVP                  ! RRV RV/VB  VP                  \        P                  4       R# )	hexbinz not supported with Seriesr5   r6   r7   axN)rH   scatterpie )pltsubplotsrC   
isinstancer   r&   skipr)   savefigosdevnull)r7   r   rC   figrI   r1   s   &&&   r   test_savefigrU   Z   s|     llnGCJF++dF##KK4& :;<q#q!II)4)B)&)KK

r   c                   x   a  ] tR t^rt o R t]P                  P                  R/ R^/.4      R 4       tR t	Rt
V tR# )TestSeriesPlotsc                   \        \        P                  ! ^
\        P                  R7      \	        R^
R7      RR7      p\
        P                  ! R4      ;_uu_ 4        \        \        P                  VR7       \        \        P                  VP                  R7       \        P                  ! VRR	7      pRRR4       \        XR.R
7       R#   + '       g   i     L ; i)
   r2   rD   rE   tsrC   nameN)seriesTest)label)labels)r   nparangefloat64r   tmassert_produces_warningr   r	   autocorrelation_plotvaluesr   )selfserrI   s   &  r   test_autocorrelation_plot)TestSeriesPlots.test_autocorrelation_plots   s    IIb

+\26
 ''--h;;CHh;;CJJO..s&AB	 .
 	R1 .-s   ACC	r1   lagc                    \        \        P                  ! ^
\        P                  R7      \	        R^
R7      RR7      p\        \        P                  3RV/VB  R# )rY   r2   rD   rE   rZ   r[   r]   N)r   ra   rb   rc   r   r   r	   lag_plot)rh   r1   ri   s   && r   test_lag_plotTestSeriesPlots.test_lag_plot   sE    IIb

+\26

 	(++BCB6Br   c                    \        \        P                  ! ^
\        P                  R7      \	        R^
R7      RR7      p\        \        P                  V^
R7       R# )rY   r2   rD   rE   rZ   r[   )r]   sizeN)r   ra   rb   rc   r   r   r	   bootstrap_plot)rh   ri   s   & r   test_bootstrap_plot#TestSeriesPlots.test_bootstrap_plot   s?    IIb

+\26

 	(11#BGr   rL   N)__name__
__module____qualname____firstlineno__rj   r&   markparametrizero   rt   __static_attributes____classdictcell____classdict__s   @r   rW   rW   r   sF     2 [[XUAJ'78C 9CH Hr   rW   c                     a  ] tR t^t o ]P
                  P                  RRR.4      R 4       t]P
                  P                  RRR.4      R 4       t]P
                  P                  R 4       t
]P
                  P                  ]P
                  P                  RR4. R5O.4      ]P
                  P                  RR	]! R
]P                  P                  ^4      P                  ^
4      R]P                  P                  ^4      P                  ^
4      R]P                  P                  ^4      P                  ^
4      RR
.^
,          /4      .4      R 4       4       4       t]P
                  P                  ]P
                  P                  RR	]! R
]P                  P                  ^4      P                  ^
4      R]P                  P                  ^4      P                  ^
4      R]P                  P                  ^4      P                  ^
4      RR
.^
,          /4      .4      R 4       4       t]P
                  P                  R 4       t]P
                  P                  ]P
                  P                  RR4. R5O.4      R 4       4       t]P
                  P                  R 4       t]P
                  P                  R 4       t]P
                  P                  R 4       t]P
                  P/                  R4      R 4       tR t]P
                  P                  RR4. R5O.4      R 4       tR tR tR tR tR tR t R  t!R! t"R" t#R# t$R$ t%R% t&]P
                  P                  R&R'R(.4      R) 4       t'R* t(R+ t)R, t*R- t+R. t,R/ t-R0 t.R1 t/R2t0V t1R3# )6TestDataFramePlots	pass_axisFTc           	     D   \         P                  ! R 4       \        P                  pRpV'       d#   \        P
                  P                  ^^4      w  rC\        \        P                  P                  ^4      P                  R4      4      p\        P                  ! \        RR7      ;_uu_ 4        \        VVRVR7      pRRR4       X^ ,          ^ ,          P                   P#                  4       p. ROp\%        Wx4       \'        V^^Z^^ R7       R#   + '       g   i     LY; i)	scipyNFcheck_stacklevel皙?framerange_paddingrI   
xlabelsizexrot
ylabelsizeyrotrY      )z-2z-10r&   importorskipr	   scatter_matrixmplpyplotrN   r   ra   randomdefault_rngstandard_normalrd   re   UserWarningr   yaxisget_majorticklabelsr   r   	rh   r   r   rI   _r+   axesaxes0_labelsexpecteds	   &&       r   test_scatter_matrix_axis+TestDataFramePlots.test_scatter_matrix_axis   s    G$!00JJ''1-EAryy,,Q/??HI ''eLL$!	D M Awqz'';;=$<24AB11M MLs   .DD	c           	     x   \         P                  ! R 4       \        P                  pRpV'       d#   \        P
                  P                  ^^4      w  rC\        \        P                  P                  ^4      P                  R4      4      pV^ ,          ^,
          ^,          V^ &   \        P                  ! \        RR7      ;_uu_ 4        \        VVRVR7      pRRR4       X^ ,          ^ ,          P                   P#                  4       p. ROp\%        Wx4       \'        V^^Z^^ R7       R#   + '       g   i     LY; i)	r   NFr   r   r   r   r   )z-1.25z-1.0z-0.75z-0.5r   r   s	   &&       r    test_scatter_matrix_axis_smaller3TestDataFramePlots.test_scatter_matrix_axis_smaller   s    G$!00JJ''1-EAryy,,R0@@IJAa1 ''eLL$!	D M Awqz'';;=5<24AB11M MLs   D))D9	c                    \         P                  ! R 4      ;_uu_ 4        \        \        P                  VRR7       R R R 4       R #   + '       g   i     R # ; iNNamer   class_column)rd   re   r   r	   andrews_curvesrh   r!   s   &&r   test_andrews_curves_no_warning1TestDataFramePlots.test_andrews_curves_no_warning   s7     ''--h55TPVW .---   AA	
linecolorsr+   r!   r#   BCr   c                    \        V\        4      '       d   VP                  V4      p\        \        P
                  VR VR7      p\        VP                  4       R,          W2R ,          R,          R7       R# r   r   r   colorNrY   Nr   mappingN)rO   strgetfixturevaluer   r	   r   r   	get_lines)rh   requestr+   r   rI   s   &&&& r   test_andrews_curves_linecolors1TestDataFramePlots.test_andrews_curves_linecolors   s\    . b#((,B##2F*
 	LLN3J6
3	
r   c                   \        V\        4      '       d   VP                  V4      p\        P                  ! ^ ^VR,          P                  4       4       Uu. uF  p\        P                  V4      NK  	  pp\        \        P                  VRVR7      p\        VP                  4       R,          WBR,          R,          R7       R# u upi )    r   r   r   r   N)rO   r   r   ra   linspacenuniquecmjetr   r	   r   r   r   )rh   r   r+   ncmapsrI   s   &&&   r   test_andrews_curves_cmap+TestDataFramePlots.test_andrews_curves_cmap   s      b#((,B$&KK1bj6H6H6J$KL$Kq$KL##2F%
 	bllnS)eZPS_U	 Ms   Cc           
         . ROp\        R. R	OR. R	OR. R	ORV/4      p\        P                  ! VRVR7      pVP                  4       w  rE\	        WAR7       R# 
br#   r   r   r   r   )r   Nr   gr   r   r   )r   r	   r   get_legend_handles_labelsr   rh   colorsr+   rI   handlesr   s   &     r   test_andrews_curves_handle-TestDataFramePlots.test_andrews_curves_handle  sO     YYYPVWX$$Rv>113
g1r   r   c                    Tp\        \        P                  VR VR7      p\        VP	                  4       R,          W#R ,          R,          R7       R# r   )r   r	   parallel_coordinatesr   r   )rh   r!   r   r+   rI   s   &&&  r    test_parallel_coordinates_colors3TestDataFramePlots.test_parallel_coordinates_colors  sC     ))&PU
 	bllnS)eZPS_Ur   c                |   Tp\        \        P                  VR \        P                  R7      p\
        P                  ! ^ ^VR ,          P                  4       4       Uu. uF"  p\        P                  P	                  V4      NK$  	  pp\        VP                  4       R,          WRR ,          R,          R7       R# u upi )r   r   r   colormapr   r   N)r   r	   r   r   r   ra   r   r   r   r   r   )rh   r!   r+   rI   r   r   s   &&    r   test_parallel_coordinates_cmap1TestDataFramePlots.test_parallel_coordinates_cmap  s    ))VV	
 )+Aq"V*:L:L:N(OP(O1A(OPbllnS)eZPS_U Qs   (B9c                @   Tp\        \        P                  VR R7      p\        VP	                  4       4      p\        VP
                  P                  4       4      p\        \        P                  VR RR7      p\        VP	                  4       4      WE,
          8X  g   Q hR# )r   r   F)r   r   axvlinesN)r   r	   r   r?   r   xaxisget_ticklabels)rh   r!   r+   rI   nlinesnxtickss   &&    r   #test_parallel_coordinates_line_diff6TestDataFramePlots.test_parallel_coordinates_line_diff&  s    ))&
 R\\^$bhh--/0))&SX
 2<<>"v'7888r   c           
         Tp. ROp\        R. R	OR. R	OR. R	ORV/4      p\        P                  ! VRVR7      pVP                  4       w  rV\	        WSR7       R# r   )r   r	   r   r   r   )rh   r!   r+   r   rI   r   r   s   &&     r   !test_parallel_coordinates_handles4TestDataFramePlots.test_parallel_coordinates_handles5  sT     YYYPVWX**2vVD113
g1r   z$ignore:Attempting to set:UserWarningc           
        \        R \        \        ^4      4      R\        ^
4       Uu. uF  p^NK  	  up\        ^
4       Uu. uF  p^NK  	  up,           \        ^
4       Uu. uF  p^NK  	  up,           /4      p\        P                  ! VRRR7      pVP                  4       w  rE\        V Uu. uF  qfP                  4       NK  	  upVRR7      p\        VR R7      p\        \        V^ R	 4      \        VR,          4      RR7      p	V	 F1  w  rV
^,          V^,          8  d   V
^ ,          V^ ,          8  d   K1  Q h	  R# u upi u upi u upi u upi )
featclassT)sort_labelsstrictc                     V ^,          # )r   rL   )r5   s   &r   <lambda>QTestDataFramePlots.test_parallel_coordinates_with_sorted_labels.<locals>.<lambda>O  s	    aPQdr   )key:r   NNN)	r   listranger	   r   r   zip	get_colorsorted)rh   r   r+   rI   	polylinesr`   polylinecolor_label_tuplesordered_color_label_tuplesprev_next_tupelsprevnxts   &           r   ,test_parallel_coordinates_with_sorted_labels?TestDataFramePlots.test_parallel_coordinates_with_sorted_labels?  s<    U2YU2Y/Y!Y/#Bi(i1i()#Bi(i1i()
 **2wDI88:	 2;<)h!)<fT
 &,,>N%S"+Ab12+B/0

 *ID7SV#Q#a&(888 *! 0(( =s   EE"E/Ec                    \         P                  ! R 4      ;_uu_ 4        \        \        P                  VRR7       R R R 4       R #   + '       g   i     R # ; ir   )rd   re   r   r	   radvizr   s   &&r   test_radviz_no_warning)TestDataFramePlots.test_radviz_no_warningY  s2    ''--hooTO .---r   c                   Tp\        \        P                  VR VR7      pVP                  R,           Uu. uF  qUP	                  4       R8w  g   K  VNK  	  pp\        VR,          W#R ,          R,          R7       R# u upi )r   r   N   Nr.   r   
facecolorsr   N)r   r	   r	  patches	get_labelr   )rh   r!   r   r+   rI   pr  s   &&&    r   test_radviz_color$TestDataFramePlots.test_radviz_color^  sg    
 OO2F%
 !jjoEo"1D11oEgclujoN Fs   A<A<c                   Tp\        \        P                  VR \        P                  R7      p\
        P                  ! ^ ^VR ,          P                  4       4       Uu. uF"  p\        P                  P	                  V4      NK$  	  ppVP                  R,           Uu. uF  qfP                  4       R8w  g   K  VNK  	  pp\        WuVR ,          R,          R7       R# u upi u upi )r   r   r  r.   r   r  N)r   r	   r	  r   r   ra   r   r   r   r  r  r   )rh   r!   r+   rI   r   r   r  r  s   &&      r   test_radviz_color_cmap)TestDataFramePlots.test_radviz_color_cmapk  s    OO2FRVV
 )+Aq"V*:L:L:N(OP(O1A(OP jjoEo"1D11oEgFCI QEs   (CC!7C!c                    . RO. R	O. R
O.p\        R. ROR. ROR. ROR. RO/4      p\        P                  ! VRVR7      pVP                  4       w  rE\	        WAR7       R# )        r#   r   r   r   r   )r  N)r  r        ?r  )r        ?r  r  )r  r  r  r  r   )r   r   r   )r   r   r   r   )r   r	   r	  r   r   r   s   &     r   test_radviz_colors_handles-TestDataFramePlots.test_radviz_colors_handlest  sZ    &(<>RS)S)S)V_U
 __Rv6113
g1r   c                    VP                  R ^R7      P                  4       p\        VP                  4      pVP	                  RVR7      pV Uu. uF  qUP                  4       NK  	  upV8X  g   Q hR# u upi )r   axisTrN   titleNdropheadr   columnsr)   	get_title)rh   r!   r+   r#  r)   r  s   &&    r   test_subplot_titles&TestDataFramePlots.test_subplot_titles}  sc    YYvAY&++-RZZ  wwEw2'+,t!t,555,s   A2c                &   VP                  R ^R7      P                  4       p\        VP                  4      pRp\        P
                  ! \        VR7      ;_uu_ 4        VP                  R. VORNR7       RRR4       R#   + '       g   i     R# ; i)r   r   jThe length of `title` must equal the number of columns if using `title` of type `list` and `subplots=True`r$   Tzkittens > puppiesr"  Nr%  r&  r   r'  r&   r'   
ValueErrorr)   rh   r!   r+   r#  rA   s   &&   r   test_subplot_titles_too_much/TestDataFramePlots.test_subplot_titles_too_much  ss    YYvAY&++-RZZ ? 	 ]]:S11GGT)F5)F2E)FGG 2111s   A??B	c                ,   VP                  R ^R7      P                  4       p\        VP                  4      pRp\        P
                  ! \        VR7      ;_uu_ 4        VP                  RVR,          R7       RRR4       R#   + '       g   i     R# ; i)r   r   r,  r$   T:Nr   Nr"  Nr-  r/  s   &&   r   test_subplot_titles_too_little1TestDataFramePlots.test_subplot_titles_too_little  sk    YYvAY&++-RZZ ? 	
 ]]:S11GGTrG3 2111s   BB	c                   VP                  R ^R7      P                  4       p\        VP                  4      pRp\        P
                  ! \        VR7      ;_uu_ 4        VP                  RVR7       RRR4       R#   + '       g   i     R# ; i)r   r   zNUsing `title` of type `list` is not supported unless `subplots=True` is passedr$   Fr"  Nr-  r/  s   &&   r   "test_subplot_titles_subplots_false5TestDataFramePlots.test_subplot_titles_subplots_false  sg    YYvAY&++-RZZ ( 	 ]]:S11GGU%G0 2111s   A;;B	c                F   VP                  R ^R7      P                  4       p\        VP                  4      pVP                  R^R7      P	                  RRVRR	 R7      pV UUu. uF  qU F  qfP                  4       NK  	  K  	  pppV. VR,          ORN8X  g   Q hR# u uppi )
r   r   
SepalWidthTN)rN   layoutr#  :Nr   Nr.   r   r   r   r$  )rh   r!   r+   r#  r)   sublistrI   
title_lists   &&      r   )test_subplot_titles_numeric_square_layout<TestDataFramePlots.test_subplot_titles_numeric_square_layout  s    YYvAY&++-RZZ ww|!w,11&cr
 2 
 59KD7Rlln7nD
K-uRy-"---- Ls   $ Bc                d   \        \        P                  ! R4      4      p\        P                  ! V^ 4       \        P
                  P                  R4      P                  4       p\        P                  ! V^ 4       \        P
                  P                  R4      P                  4       pW#8w  g   Q hR# )rY   N)rY   rY   )r   ra   zerosr	   r   r   r   )rh   r+   rand1rand2s   &   r   $test_get_standard_colors_random_seed7TestDataFramePlots.test_get_standard_colors_random_seed  s{    rxx)* 	%%b!,		%%d+224%%b!,		%%d+224~~r   c                J    \        ^RR7      p\        ^RR7      pW8X  g   Q hR# )r   r   
color_typeNr   )rh   color1color2s   &  r   $test_get_standard_colors_consistency7TestDataFramePlots.test_get_standard_colors_consistency  s(     %Q8<$Q8<r   c                    \        ^RR7      p\        ^	RR7      p\        ^RR7      p\        V4      ^8X  g   Q h\        V4      ^	8X  g   Q h\        V4      ^8X  g   Q hR# )r   defaultrG  N)r   r?   )rh   rI  rJ  color3s   &   r   +test_get_standard_colors_default_num_colors>TestDataFramePlots.test_get_standard_colors_default_num_colors  s\    $Q9=$Q9=$RI>6{a6{a6{b   r   c                  a \        R . ROR. ROR. ROR. ROR. ROR. RO/4      pVP                  P                  4       P                  P	                  4       pVP                  4       R,           Uu. uF  q3P                  4       NK  	  upo\        ;QJ d    V3R lS 4       F  '       d   K   RM	  R	M! V3R lS 4       4      '       g   Q hR
# u upi )zaccount-startclientbalancezdb-idzproxy-idrank:r   r   Nc              3   :   <"   T F  qS^ ,          8H  x  K  	  R# 5i)r   NrL   ).0r   r   s   & r   	<genexpr><TestDataFramePlots.test_plot_single_color.<locals>.<genexpr>  s     :6%F1I%6s   FTN)z
2017-02-03z
2017-03-03z
2017-01-01)zAlice Andersz	Bob BakerzCharlie Chaplin)gzGag\($@g     L@)i  ix	     )  i  i	  )4   r[      )r   rS  value_countsr)   r8   get_childrenget_facecolorall)rh   r+   rI   rectr   s   &   @r   test_plot_single_color)TestDataFramePlots.test_plot_single_color  s    !KJ6*-	
 YY##%**..035??3DS3IJ3I4$$&3IJs:6:sss:6::::: Ks   0Cc                p   \         P                  P                  \        ^4      4      p\	        ^VR7      p\        V4      \        V4      8X  g   Q h\        \        P                  P                  ^4      P                  R4      \        R4      R7      p\         P                  P                  \        P                  ! ^ ^^4      4      pVP                  P                  P                  RVR7      pVP                   ^,          P#                  4       VP                   ^,          P#                  4       8X  g   Q hR# )   r   ABCDr'  )figsizer   N)0      )      )r   r   gnuplotr   r   r?   r   ra   r   r   r   r   r   r#   r)   r8   r  r`  )rh   color_beforecolor_afterr+   
color_listr  s   &     r   %test_get_standard_colors_no_appending8TestDataFramePlots.test_get_standard_colors_no_appending  s    
 vv~~eAh/)!<@;3|#4444II!!!$44W=tF|
 VV^^BKK1b$9:
DDIIMM'M<yy|))+qyy}/J/J/LLLLr   r7   r8   r4   c                X  a R R.pRR.o\        \        P                  P                  ^4      P                  R4      VR7      pRRR R/pVP	                  WR7      pVR8X  d8   VP                  4       R,           Uu. uF  qfP                  4       ^ R NK  	  ppM3VP                  4       R,           Uu. uF  qfP                  4       NK  	  pp\        ;QJ d(    V3R l\        V4       4       F  '       d   K   RM	  R	M! V3R l\        V4       4       4      '       g   Q hR
# u upi u upi )ar   rh  )r7   r   r8   :r   r   r   :r   r   Nc              3   @   <"   T F  w  rVSV,          8H  x  K  	  R # 5iNrL   )rW  rC   r   r   s   &  r   rX  ;TestDataFramePlots.test_dictionary_color.<locals>.<genexpr>  s     R@Q5HUO+@Qs   FTN)r  gQ?g333333?)g333333?ffffff?ry  r;  r   )r   ra   r   r   r)   r_  r`  r   r   ra  	enumerate)	rh   r7   
data_filesdf1	dic_colorrI   rb  r   r   s	   &&      @r   test_dictionary_color(TestDataFramePlots.test_dictionary_color  s     3Z
$o6		--a077?T/30@A	XX4X15==?__=Nu=UV=UT((*1R0=UFVF35<<>#3FG3F4nn&3FFGsR	&@QRsssR	&@QRRRRR WGs   ;D"2D'c           	        \         P                  P                  ^ ^ R4      \         P                  P                  ^^ R4      .p\        R^^./\	        ^ R.4      R7      pVP
                  P                  4       p\        ;QJ d6    R \        VP                  4       VRR7       4       F  '       d   K   RM+	  RM'! R \        VP                  4       VRR7       4       4      '       g   Q hR	# )
r   r   Totalru  rC   c              3   h   "   T F(  w  rVP                  4       VP                  4       8H  x  K*  	  R # 5irw  get_textrW  ru  r   s   &  r   rX  3TestDataFramePlots.test_bar_plot.<locals>.<genexpr>  s*      
N ZZ\QZZ\)N   02Tr   FN)
r   textTextr   r   r)   r8   ra  r   get_xticklabels)rh   r   r+   plot_bars   &   r   test_bar_plot TestDataFramePlots.test_bar_plot  s     HHMM!Q,chhmmAq'.JKaV G%	
 77;;=s 
H446N
sss 
H446N
 
 
 	
 
r   c           	        \        R ^R^ /R RR^/.4      pVP                  P                  R RR7      p\        P                  P                  ^ ^ R4      \        P                  P                  ^ ^R4      .p\        ;QJ d6    R \        VP                  4       VRR7       4       F  '       d   K   R	M+	  RM'! R \        VP                  4       VRR7       4       4      '       g   Q hR# )
wordvalue	knowledgeN)r5   legend1c              3   h   "   T F(  w  rVP                  4       VP                  4       8H  x  K*  	  R # 5irw  r  )rW  actualr   s   &  r   rX  PTestDataFramePlots.test_barh_plot_labels_mixed_integer_string.<locals>.<genexpr>  s3      
%  OO!2!2!44%r  Tr   F)	r   r)   barhr   r  r  ra  r   get_yticklabels)rh   r+   	plot_barhexpected_yticklabelss   &   r   *test_barh_plot_labels_mixed_integer_string=TestDataFramePlots.test_barh_plot_labels_mixed_integer_string  s     GQ/&+wPQ1RSTGGLL6$L7	HHMM!Q$HHMM!Q, 
 s 
$'))+-A$%
sss 
$'))+-A$%
 
 
 	
 
r   c                   \         P                  P                  P                  p\        P
                  P                  4       pVP                  ^^4      pVP                  ^V^,          ^ ,          R7      V^ ,          ^ &   VP                  ^V^,          ^,          R7      V^ ,          ^&   V^ ,          ^,          P                  4        V^ ,          ^,          P                  4        V! V^ ,          ^ ,          R4      '       g   Q hV! V^ ,          ^,          R4      '       d   Q hV! V^ ,          ^,          R4      '       g   Q hV! V^ ,          ^,          R4      '       d   Q hR# )r   sharexr5   N)
r	   _matplotlibtools_has_externally_shared_axisr   r   figurerN   add_subplottwinxrh   r@   rT   plotss   &   r   &test_has_externally_shared_axis_x_axis9TestDataFramePlots.test_has_externally_shared_axis_x_axis$      ##))EEjj!Q" ooc%(1+o>aooc%(1+o>a 	aa E!HQK%%%%aS))))E!HQK%%%%aS)))))r   c                   \         P                  P                  P                  p\        P
                  P                  4       pVP                  ^^4      pVP                  RV^ ,          ^,          R7      V^ ,          ^ &   VP                  RV^,          ^,          R7      V^,          ^ &   V^,          ^ ,          P                  4        V^,          ^ ,          P                  4        V! V^ ,          ^ ,          R4      '       g   Q hV! V^,          ^ ,          R4      '       d   Q hV! V^,          ^ ,          R4      '       g   Q hV! V^,          ^ ,          R4      '       d   Q hR# )rk  A  shareyiE  r6   N)
r	   r  r  r  r   r   r  rN   r  twinyr  s   &   r   &test_has_externally_shared_axis_y_axis9TestDataFramePlots.test_has_externally_shared_axis_y_axis=  r  r   c                   \         P                  P                  P                  p\        P
                  P                  4       pVP                  ^^4      pVP                  RV^ ,          ^,          R7      V^ ,          ^ &   Rp\        P                  ! \        VR7      ;_uu_ 4        V! V^ ,          ^ ,          R4       RRR4       R#   + '       g   i     R# ; i)rk  r  r  z&needs 'x' or 'y' as a second parameterr$   zN)r	   r  r  r  r   r   r  rN   r  r&   r'   r.  )rh   r@   rT   r  rA   s   &    r   4test_has_externally_shared_axis_invalid_compare_axisGTestDataFramePlots.test_has_externally_shared_axis_invalid_compare_axisV  s     ##))EEjj!Q" ooc%(1+o>a 7]]:S11q!c" 2111s   &CC	c                h   \        R \        P                  P                  ^4      P	                  ^
4      R\        P                  P                  ^4      P	                  ^
4      /4      p\
        P                  P                  4       pVP                  ^^4      pVP                  ^V^,          ^ ,          R7      V^ ,          ^ &   VP                  ^V^,          ^,          R7      V^ ,          ^&   V^ ,          ^,          P                  4       pV^ ,          ^,          P                  4       pVR ,          P                  V^ ,          ^ ,          RR7      P                  R4       VR ,          P                  V^,          ^ ,          R7       VR ,          P                  V^ ,          ^,          RR7      P                  R4       VR ,          P                  V^,          ^,          R7       VR ,          P                  V^ ,          ^,          R	R7      P                  R4       VR ,          P                  V^,          ^,          R7       VR,          P                  VR
R7       VR,          P                  VRR7       V^ ,          ^ ,          P                  P                  4       P                  4       '       d   Q hV^ ,          ^,          P                  P                  4       P                  4       '       g   Q hV^ ,          ^,          P                  P                  4       P                  4       '       d   Q hR# )ru  r   r  zExternal share only)rI   r#  z"this label should never be visible)rI   zInternal share (twin) onlyz#this label should always be visibleBothgreen)rI   r   yellowN)r   ra   r   r   r   r   r   r  rN   r  r  r)   
set_xlabelr   r  get_visible)rh   r+   rT   r  twin_ax1twin_ax2s   &     r   test_externally_shared_axes.TestDataFramePlots.test_externally_shared_axesg  sp    RYY**1-==bARYY**1-==bA
 jj!Q" ooc%(1+o>aooc%(1+o>a 8A;$$&8A;$$& 	3a+@ALL0	
 	3a$
3a+GHSS1	
 	3a$
3a62==0	
 	3a$ 	30
318A;$$..0<<>>>>Qx{  **,88::::8A;$$..0<<>>>>>r   c                    \        R .\        R4      .R7      p\        VP                  4       \	        RR /4      p\        VP                  P
                  4       R# )r  z2022-02-22 22:22:22r  r#   N)r   r   r   r)   r   r8   )rh   r+   ss   &  r   -test_plot_bar_axis_units_timestamp_conversion@TestDataFramePlots.test_plot_bar_axis_units_timestamp_conversion  sK     E234
 	"''"C:!&&**%r   c           	     @   \         P                  P                  ^ ^ R4      \         P                  P                  ^^ R4      .p\        ^^.\	        ^ ^RR7      .R7      p\        VP                  P                  4       \        ;QJ dN    R \        VP                  P                  4       P                  4       VRR7       4       F  '       d   K   R	MC	  RM?! R \        VP                  P                  4       P                  4       VRR7       4       4      '       g   Q hR
# )r   z	([0, 1],)z	([1, 2],)both)closedr  c              3   h   "   T F(  w  rVP                  4       VP                  4       8H  x  K*  	  R # 5irw  r  r  s   &  r   rX  FTestDataFramePlots.test_bar_plt_xaxis_intervalrange.<locals>.<genexpr>  s*      
R ZZ\QZZ\)Rr  Tr   FN)r   r  r  r   r   r   r)   r8   ra  r   r  )rh   r   r  s   &  r    test_bar_plt_xaxis_intervalrange3TestDataFramePlots.test_bar_plt_xaxis_intervalrange  s     HHMM!Q4chhmmAq+6VWF!!Qv67
 	!&&**%s 
AFFJJL88:HTR
sss 
AFFJJL88:HTR
 
 
 	
 
r   rL   N)z#556270z#4ECDC4z#C7F464)
dodgerblue
aquamarineseagreen)2rv   rw   rx   ry   r&   rz   r{   r   r   slowr   r   ra   r   r   r   r   r   r   r   r   r   r   filterwarningsr  r
  r  r  r  r)  r0  r3  r6  r>  rD  rK  rP  rc  rr  r~  r  r  r  r  r  r  r  r  r|   r}   r~   s   @r   r   r      s    [[[5$-8N 9N0 [[[5$-8N 9N0 [[X X
 [[[[-4	
 [[..q1AA"E..q1AA"E..q1AA"ESEBJ	
	

 ,
 [[[[..q1AA"E..q1AA"E..q1AA"ESEBJ	
	
V V [[2 2 [[[[	*,TUV	 
V [[
V 
V [[9 9 [[2 2 [[ FG9 H92P
 [[	*,TUO	OJ26
H
4
1	.	 !; M" [[VeV_5S 6S"
"
 *2*2#".?`
&
 
r   r   c                  b    \         P                  P                  ^4      P                  ^ ^d^4      # )r   )ra   r   r   integersrL   r   r   df_bar_datar    s&    99  #,,QQ77r   c                $    V ^8  d   QhR\         /# r   r   )r   s   "r   r   r     s     	 	i 	r   c                 \    \        R V RV RRR1,          RV ^ ,          RV R,          /4      pV# )r#   r   Nr   Dr   r   )r  	df_bar_dfs   & r   r  r    s>    TrT"QR		
I r   c           
         . p\        \        V4      4       F  p\        P                  ! W,          P	                  \
        P                  4       Uu. uFI  pVP                  4       V 9   g   K  VP                  4       VP                  4       VP                  4       3NKK  	  up4      pVP                  \        V. ROR7      4       K  	  V# u upi )x_coord)r   r'  )r  y_coordheight)r   r?   ra   arrayfindobjrM   	Rectangle
get_heightget_xget_yappendr   )r  rI   subplot_divisionsubplot_data_df_listir5   subplot_datas   &&&    r   _df_bar_xyheight_from_ax_helperr    s     3'()xx s}}55A<<>[0 7AGGIq||~65
 	##<1QR	
 *  s   C
-3C
c                 8   \        \        V4      4       Uu. uFG  pVP                  \        V 4      V,          \        V 4      V^,           ,           P                  4       NKI  	  pp\        V4      ^8X  d   VP                  RV^ ,          3,          pM%VP                  RV3,          P                  ^R7      p\        \        V4      4       F  pWT,          pV^ 8X  dC   VR,          ^ 8H  P                  4       '       g   Q hVR,          P                  VR,          4      pMXVR,          ,           pV^,           \        V4      8X  d   \        P                  ! WRRR7       K  WT^,           ,          R,          p	\        P                  ! WRRR7       K  	  R# u upi )r   :NNNr   r  r  F)check_namescheck_dtypeN)
r   r?   ilocreset_indexlocsumra  addrd   assert_series_equal)
r  r  subplot_data_dfsubplot_columnsr  subplot_sliced_by_sourceexpected_total_height	sliced_dfheight_iternext_start_coords
   &&&&      r   _df_bar_subplot_checkerr    sp   
 s?+,	  -A 	q 3{#3q1u#=	

+-	 -	    ?q  )a1C.C D )a.@ A E E1 E M3'(,/	6i(A-224444#I.229X3FGK%	((;;Kq5C((""SX
  8A>yI""5e# ) s   AFcolumns_usedr#   r   r   r  c                     W,          pV.pVP                  VR RR7      p\        WV4      p\        \        V4      4       F  p\	        WWg,          WG,          4       K  	  R# r8   TrN   r7   stackedNr)   r  r   r?   r  r  r  r  df_bar_df_trimmedr  rI   r  r  s   &&&     r   #test_bar_1_subplot_1_double_stackedr    sj    !/$~			)9t		TB:) 3+,-,@,CEUEX	
 .r   c                     W,          pV^ ,          V^,          3V^,          3.pVP                  VRRR7      p\        WV4      p\        \        V4      4       F  p\	        WWg,          WG,          4       K  	  R# )r   r8   Tr  Nr  r  s   &&&     r   #test_bar_2_subplot_1_double_stackedr  	  s     "/%a,q/:\!_<NO			)9t		TB:) 3+,-,@,CEUEX	
 .r   r  c                     VP                  VR RR7      p\        WV4      p\        \        V4      4       F  p\	        WWE,          W%,          4       K  	  R# r  r  r  r  r  rI   r  r  s   &&&   r   #test_bar_2_subplot_2_double_stackedr    sX     
!1t	LB:) 3+,-$8$;=M=P	
 .r   c                     VP                  VR RR7      p\        WV4      p\        \        V4      4       F  p\	        WWE,          W%,          4       K  	  R# r  r  r  s   &&&   r   $test_bar_2_subplots_1_triple_stackedr  -  sX    
 
!1t	LB:) 3+,-$8$;=M=P	
 .r   c                     . ROpVP                  RRRR7      p\        WV4      p\        \        V4      4       F  p\	        WWE,          W%,          4       K  	  R# )r#   Tr8   r  Nr#   r   r   r  r  r  s   &&    r   test_bar_subplots_stacking_boolr  <  s[    3	E4	@B:) 3+,-$8$;=M=P	
 .r   c                  b    \        . RO\        R4      R7      p V P                  RR. ROR7       R# )	   rg  rh  Tr8   rN   r7   r#  N)r  rY   rY   rY   )r  r  r  r  )rY   r  r  rY   r
  r   r   r)   r*   s    r   !test_plot_bar_label_count_defaultr  H  s*    	>V
B GGT-AGBr   c                     \        . RO\        R4      R7      p \        P                  ! R4      p\        P
                  ! \        VR7      ;_uu_ 4        V P                  R	.R. R
OR7       RRR4       R#   + '       g   i     R# ; i)r  rg  rh  z?The number of titles (4) must equal the number of subplots (3).r$   r8   r  Nr  r#   r   )zA&Br   r  zExtra Title)r   r   reescaper&   r'   r.  r)   )r+   error_regexs     r   'test_plot_bar_label_count_expected_failr  O  sf    	>V
B ))IK 
z	5	5
 \2 	 	
 
6	5	5	5s   A55B	c                  d    \        . RO\        R4      R7      p V P                  R	.RRR.R7       R# )
r  rg  rh  r8   zA&B&Dr   r  Nr  )r#   r   r  r  r*   s    r   *test_plot_bar_label_count_expected_successr  ^  s0    	>V
B GGo&U7C.GIr   )r#   r   r   )r#   r   r   )r  r#   r   r  )r   r  )r#   r  )r   r   )r   r   )r  r#   )r   r  )r   r#   )r#   r  r   )r   r#   r  )r  r   r#   )>__doc__rR   numpyra   r&   pandas.util._test_decoratorsutil_test_decoratorstdpandasr   r   r   r   r   r   r   r	   r
   pandas._testing_testingrd   pandas.tests.plotting.commonr   r   r   r   r   r   r   rM   r   r  !pandas.plotting._matplotlib.styler   fixturer!   skip_if_installedr,   rB   rz   r{   r;   
_all_kindsrb   reshaper   rU   rW   r   r  r  r  r  r  r  r  r  r  r  r  r  rL   r   r   <module>r)     s   ( 	   ) )
 
 
   ,'-.) 	 A ? ? l# $D !6!6!A!AB
Yryy},,Q23VE!H5EF eAh<+\1-	 C	H HB\
 \
~ 8 8 	 	 & H 3*sCj3*)MN

 O

 _oG



 	Z 	Z 	Z 	Z 	

 )O+<>OP
	
	
C
Jr   