+
    xȇi                     P   R t ^ RIHtHtHtHt ^ RIt^ RIt^ RIt^ RI	H
t
Ht ^ RIHt ^ RI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 ^ RIHtHtH t  ^ RI!H"t" ^ R	I#H$t$ ^ R
I%H&t& ]PN                  ! R4      t(]PN                  ! R4      t)^ RI*H+u H,u H-t.  ! R R4      t/RR lt0R# )z:Test cases for time series specific (freq conversion, etc))datedatetimetime	timedeltaN)
BaseOffset	to_offset)PeriodDtype)	DataFrameIndexNaTSeriesconcatisnato_datetime)DatetimeIndexbdate_range
date_range)PeriodPeriodIndexperiod_range)timedelta_range)_check_ticks_props)WeekOfMonth
matplotlibzmatplotlib.pyplotc                   
  a ] tR t^4t o]P
                  P                  R4      R 4       tR tR t	R t
R tR tR t]P
                  P                  R	. RO4      R 4       t]P
                  P                  R	. RO4      R 4       tR t]P
                  P                  RR]! R^
R7      .4      R 4       t]P
                  P                  R	RR.4      R 4       tR t]P
                  P                  RRR.R
R..4      R 4       t]P
                  P                  R	. RO4      R 4       t]P
                  P                  R. RO4      R 4       t]P
                  P                  R	. RO4      R 4       t]P
                  P                  R	. RO4      R  4       t]P
                  P                  R. RO4      R! 4       t]P
                  P                  R"4      ]P
                  P                  R	. RO4      R# 4       4       t]P
                  P                  R	. RO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(R0 t)]P
                  P                  R14      ]P
                  P                  R2]*! ]+PX                  ! ^
]+PZ                  R37      ]! R^
R7      R47      ].! R5]*! ]+PX                  ! ^
]+PZ                  R37      ]! R^
R7      R47      R6]*! ]+PX                  ! ^
]+PZ                  R37      ]! R^
R7      R47      ^,           /4      .4      R7 4       4       t/R8 t0R9 t1R: t2R; t3R< t4R= t5]P
                  Pl                  R> 4       t7R? t8R@ t9RA t:RB t;RC t<RD t=RE t>RF t?RG t@RH tARI tBRJ tCRK tDRL tERM tFRN tGRO tHRP tIRQ tJRR tKRS tLRT tMRU tN]P
                  P                  R"4      RV 4       tORW tPRX tQ]P
                  P                  RYRZ7      R[ 4       tSR\ tTR] tUR^ tVR_ tW]P
                  P                  R`RR.4      Ra 4       tX]P
                  P                  R`RR.4      Rb 4       tYRc tZRd t[Re t\Rf t]Rg t^Rh t_Ri t`Rj taRk tbRl tcRm tdRn teRo tfRp tgRq th]P
                  P                  RrRZ7      Rs 4       tiRt tjRu tkRv tlRw tmRx tnRy toRz tpR{ tqR| trR} tsR~ ttR tuR tvR twR tx]P
                  P                  RRZ7      R 4       tyR tzR t{R t|R t}R t~]P
                  P                  R]! R^R7      ]! R^RR7      ]! R^R
R7      ]! R^R
R7      ]! R U u. uF  p E\        R^V 4      NK  	  up ]R37      ]! ^4      .4      R 4       tRtVtR# u up i )
TestTSPlotzignore::UserWarningc                   Tp\        R ^RVR7      p\        RR.VR7      p\        VP                  4       VP                  4       p\	        \        VP                  4       4      4      P                  4       pV^ ,          P                  V^ ,          P                  3R8X  g   Q hVR,          P                  VR,          P                  3R	8X  g   Q hR# )
1/1/2011h)periodsfreqtzg     g@g     t@indexN    r%   )   r%   )
r   r   _check_plot_worksplotnextiter	get_lines	get_xdatahourminute)selftz_aware_fixturer!   r#   tsaxxdatas   &&     w/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/plotting/test_datetimelike.pytest_ts_plot_with_tzTestTSPlot.test_ts_plot_with_tz5   s     :qsrBUFO51"''"WWYT",,.)*446auQx/6999b	b	 0 01V;;;    c                v   \        \        P                  P                  ^4      P	                  R4      \        ^
4      R7      p\        P                  P                  4       w  r#VP                  ^VR7       VP                  4       VP                  4       ,            F  pVP                  4       ^8X  d   K  Q h	  R# )   r"   fontsizer3   N)
   	   )r	   nprandomdefault_rngstandard_normalrangemplpyplotsubplotsr)   get_xticklabelsget_yticklabelsget_fontsize)r0   df_r3   labels   &    r5   test_fontsize_set_correctly&TestTSPlot.test_fontsize_set_correctlyB   s    II!!!$44W=U2Y
 

##%
r"'')B,>,>,@@@E%%'1,,, Ar8   c                   \        R R^
R7      p\        VP                  RR7      p\        \        P
                  P                  ^4      P                  \        V4      ^34      VR7      p\        VP                  4       VR,          P                  VR,          4      p\        \        P
                  P                  ^4      P                  \        V4      ^34      VR7      p\        VP                  4       R# )1/1/1987MSr    r   Nr    r"   :r%      N:   NN)r   r   valuesr	   r?   r@   rA   rB   lenr(   r)   union)r0   idxrJ   df2s   &   r5   test_frame_inferredTestTSPlot.test_frame_inferredL   s    $;CJJT2II!!!$44c#h]C3
 	"''" #hnnSW%II!!!$44c#h]C3
 	#((#r8   c                   \        R R^
R7      p\        VP                  RR7      p\        \        P
                  P                  ^4      P                  \        V4      ^34      VR7      p\        VP                  4       R# )z2008-1-1 00:15:0015minrR   NrS   r"   )r   r   rV   r	   r?   r@   rA   rB   rW   r(   r)   r0   rY   rJ   s   &  r5   test_frame_inferred_n_gt_1%TestTSPlot.test_frame_inferred_n_gt_1]   s`    ,7BGCJJT2II!!!$44c#h]C3
 	"''"r8   c                    \         P                  ! . RO4      p\        WR7      p\        VP                  VR7       \        VP                  VR7       R# )r'   r"   )xerr)yerrNr'   r:      )r?   arrayr	   r(   r)   )r0   ias   &  r5   test_is_error_nozeroindex$TestTSPlot.test_is_error_nozeroindexf   s6    HHYa!!&&q)!&&q)r8   c                    \        R R^R7      p\        R. ROR. RO/V4      p\        P                  P	                  4       w  r4VP                  VR7       \        VP                  4       4      ^8X  g   Q hR# )	rP   YErR   ABr3   Nxyzre   )r   r	   rD   rE   rF   r)   rW   r,   )r0   rY   rJ   figr3   s   &    r5   test_nonnumeric_exclude"TestTSPlot.test_nonnumeric_excludem   s_    $:_c9=sC**%%'
22<<>"a'''r8   c                    \        R R^R7      p\        R. ROR. R	O/V4      pRp\        P                  ! \        VR7      ;_uu_ 4        VR,          P                  4        RRR4       R#   + '       g   i     R# ; i)
rP   rm   rR   rn   ro   zno numeric data to plotmatchNrq   re   )r   r	   pytestraises	TypeErrorr)   )r0   rY   rJ   msgs   &   r5   test_nonnumeric_exclude_error(TestTSPlot.test_nonnumeric_exclude_erroru   sW    $:_c9=sC']]9C00sGLLN 1000s   	A++A<	r    Dc                   \        R V^
R7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        P                  P                  4       w  rE\        VP                  VR7       R# 
12/31/1999rR   rp   N)r   r   r?   r@   rA   rB   rW   rD   rE   rF   r(   r)   r0   r    rY   serrK   r3   s   &&    r5   test_tsplot_periodTestTSPlot.test_tsplot_period|   s\    <dB?RYY**1-==c#hGM

##%#((r*r8   c                   \        R V^
R7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        P                  P                  4       w  rE\        VP                  VR7       R# r   )r   r   r?   r@   rA   rB   rW   rD   rE   rF   r(   r)   r   s   &&    r5   test_tsplot_datetimeTestTSPlot.test_tsplot_datetime   s^     D"=RYY**1-==c#hGM

##%#((r*r8   c                >   \        \        P                  ! ^
\        P                  R7      \	        R^
R7      R7      p\
        P                  P                  4       w  r#VP                  RVR7       RpWCP                  4       ^ ,          P                  4       8X  g   Q hR# )	r=   dtype
2020-01-01r   r"   kstyler3   N)        r   r   r'   )r   r?   arangefloat64r   rD   rE   rF   r)   r,   	get_color)r0   r2   rK   r3   colors   &    r5   test_tsplotTestTSPlot.test_tsplot   ss    IIb

+:lTV3W
 

##%
cb!"q)335555r8   r#   Nr   r   c                   \        \        P                  ! ^
\        P                  R7      VR7      pRp\        P
                  ! \        VR7      ;_uu_ 4        VP                  RRR7       RRR4       R#   + '       g   i     R# ; i)	r=   r   r"   zCannot pass 'style' string with a color symbol and 'color' keyword argument. Please use one or the other or pass 'style' without a color symbolry   zb-z#000099)r   r   N)r   r?   r   r   r{   r|   
ValueErrorr)   )r0   r#   r2   r~   s   &&  r5   test_both_style_and_color$TestTSPlot.test_both_style_and_color   sY    BIIb

35A% 	
 ]]:S11GG$iG0 2111s   A66B	msusc                   \         P                  P                  4       w  r#\        R ^
VR7      p\	        \
        P                  P                  ^4      P                  \        V4      4      V4      p\        VP                  VR7       R# )1/1/2012r   r    rp   N)rD   rE   rF   r   r   r?   r@   rA   rB   rW   r(   r)   )r0   r    rK   r3   rngr   s   &&    r5   test_high_freqTestTSPlot.test_high_freq   s\    

##%Rd;RYY**1-==c#hGM#((r*r8   c                T   \         P                  ! R R4      e   Q h\         P                  ! RR4      R8X  g   Q h\         P                  ! \        RR4      R4      \        RR4      P                  8X  g   Q h\         P                  ! RR4      \        RR4      P                  8X  g   Q hR # )Nr     YMz1987-12rP   z1987-1-1)conv_get_datevaluer   ordinalr0   s   &r5   test_get_datevalueTestTSPlot.test_get_datevalue   s    ""4-555""4-555tS 137i%--.	
. "":s3vj#7N7V7VVVVr8   zfreq, expected_stringzYE-DECzt = 2014  y = 1.000000zt = 2014-01-01  y = 1.000000c           	     h   \        ^\        R^VR7      R7      p\        P                  P	                  4       w  rEVP                  VR7       VP                  4       ^ ,          pVP                  4       ^ ,          P                  pVP                  4       ^ ,          pW%P                  Wx4      8X  g   Q hR# )r'   z
2014-01-01r   r"   rp   N)r   r   rD   rE   rF   r)   r,   r-   r   	get_ydataformat_coord)	r0   r    expected_stringr   rK   r3   
first_linefirst_xfirst_ys	   &&&      r5   test_ts_plot_format_coord$TestTSPlot.test_ts_plot_format_coord   s    
 QjqtLM

##%B\\^A&
&&(+33&&(+//'"CCCCr8   c                    \        R V^
R7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        VP                  VP                  P                  4       R# r   rR   N)r   r   r?   r@   rA   rB   rW   r(   r)   r#   r    r0   r    rY   r   s   &&  r5   test_line_plot_period_series'TestTSPlot.test_line_plot_period_series   sP    <dB?RYY**1-==c#hGM#((CIINN3r8   frqncyc                   \        R V^
R7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        VP                  VP                  P                  P                  4       R# r   )r   r   r?   r@   rA   rB   rW   r(   r)   r#   r    	rule_code)r0   r   rY   ss   &&  r5    test_line_plot_period_mlt_series+TestTSPlot.test_line_plot_period_mlt_series   sX     <fbA299((+;;CHEsK!&&!'',,"8"89r8   c                   \        R V^
R7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        VP                  VP                  P                  P                  4       R# r   )r   r   r?   r@   rA   rB   rW   r(   r)   r#   r    r   r   s   &&  r5   test_line_plot_datetime_series)TestTSPlot.test_line_plot_datetime_series   sX     D"=RYY**1-==c#hGM#((CIINN$<$<=r8   c                   \        R V^
R7      p\        \        P                  P	                  ^4      P                  \        V4      ^34      V. ROR7      p\        VP                  VP                  P                  4       R# r   rR   r#   columnsN)rn   ro   C)r   r	   r?   r@   rA   rB   rW   r(   r)   r#   r    r0   r    rY   rJ   s   &&  r5   test_line_plot_period_frame&TestTSPlot.test_line_plot_period_frame   s]    D"=II!!!$44c#h]C#

 	"''288==1r8   c                   \        R V^
R7      p\        \        P                  P	                  ^4      P                  \        V4      ^34      V. ROR7      pVP                  P                  P                  p\        VP                  V4       R# r   )r   r	   r?   r@   rA   rB   rW   r#   r    r   r(   r)   )r0   r   rY   rJ   r    s   &&   r5   test_line_plot_period_mlt_frame*TestTSPlot.test_line_plot_period_mlt_frame   sj     <fbAII!!!$44c#h]C#

 xx}}&&"''4(r8   z3ignore:PeriodDtype\[B\] is deprecated:FutureWarningc                x   \        R V^
R7      p\        \        P                  P	                  ^4      P                  \        V4      ^34      V. ROR7      p\        VP                  P                  4      P                  pVP                  P                  V4      P                  p\        VP                  V4       R# r   )r   r	   r?   r@   rA   rB   rW   r   r#   r    _freqstr	to_periodr(   r)   r   s   &&  r5   test_line_plot_datetime_frame(TestTSPlot.test_line_plot_datetime_frame   s    
 D"=II!!!$44c#h]C#

 288==)22xx!!$',,"''4(r8   c                   \        R V^
R7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        VP                  \        \        P                  ! VP                  4      4      4      p\        VP                  VP                  P                  4       VP                  . RO,          p\        VP                  4       R# )r   rR   N)r%   rf      rU   )r   r   r?   r@   rA   rB   rW   rV   r
   asarrayr#   r(   r)   inferred_freqilocr   s   &&  r5   test_line_plot_inferred_freq'TestTSPlot.test_line_plot_inferred_freq   s     D"=RYY**1-==c#hGMSZZrzz#))'<!=>#((CII$;$;<hh|$#((#r8   c                   \         P                  P                  4       w  r\        R R4      p\	        \        \        V4      4      VR7      p\        VR,          VR,          .4      pVP                  VR7       \        VR4      '       d   Q hR# )z2001-1-1z	2001-1-10r"   :Nrf   Nr   NNrp   r    N)
rD   rE   rF   r   r   rC   rW   r   r)   hasattr)r0   rK   r3   r   r2   s   &    r5   test_fake_inferred_business&TestTSPlot.test_fake_inferred_business
  sp    

##%[1E#c(O3/RVRV$%
22v&&&&&r8   c                    \        \        P                  ! ^
\        P                  R7      \	        R^
R7      R7      p\        VP                  4       R# )r=   r   r   r   r"   N)r   r?   r   r   r   r(   r)   )r0   r   s   & r5   test_plot_offset_freq TestTSPlot.test_plot_offset_freq  s6    IIb

+:lTV3W
 	#((#r8   c                    \        R R^
R7      p\        \        P                  P	                  ^4      P                  \        V4      4      VR7      p\        VP                  4       R# )z
2023-01-01BQSrR   r"   N)	r   r   r?   r@   rA   rB   rW   r(   r)   r0   drr   s   &  r5   test_plot_offset_freq_business)TestTSPlot.test_plot_offset_freq_business  sF    5"=RYY**1-==c"gFbQ#((#r8   c           	        \        \        R ^^4      \        R ^^4      \        R ^^4      .4      p\        \        P                  P                  ^4      P                  \        V4      4      VR7      p\        VP                  4       R# )  r"   N)
r
   r   r   r?   r@   rA   rB   rW   r(   r)   r   s   &  r5    test_plot_multiple_inferred_freq+TestTSPlot.test_plot_multiple_inferred_freq  se    HT1a((4A*>qRT@UVWRYY**1-==c"gFbQ#((#r8   c                N   \        R R^
R7      p\        \        P                  P	                  ^4      P                  \        V4      ^34      VR7      pVP                  . RO,          p\        P                  P                  4       w  rEVP                  VR7       \        VP                  4       ^ ,          P                  4       R	,          4      P                  4       pR
p\        P                   ! VR,          Ww^,          V.,
          4      R8  P#                  4       '       g   Q hR# )2012-6-22 21:59:51r   rR   r"   rp   r'   NN:0yE>N)r%   r'   rf   rT   NNNr%   )QΠE>)r   r	   r?   r@   rA   rB   rW   r   rD   rE   rF   r)   r   r,   
get_xydatadifffabsall)r0   rY   rJ   irregrK   r3   diffssecs   &       r5   test_irreg_hfTestTSPlot.test_irreg_hf"  s    -CDII!!!$44c#h]C3
 %

##%

b
r||~a(335d;<AAC b	S'3$7784?DDFFFFr8   c                Z   \        R R^
R7      p\        \        P                  P	                  ^4      P                  \        V4      ^34      VR7      p\        P                  P                  4       w  r4VP                  P                  \        4      Vn
        VP                  VR7       \        VP                  4       ^ ,          P!                  4       R,          4      P#                  4       pR	p\        P$                  ! VR,          V,
          4      R8  P'                  4       '       g   Q hR# )
r   r   rR   r"   rp   r   r   Nr   r   )r   r	   r?   r@   rA   rB   rW   rD   rE   rF   r#   astypeobjectr)   r   r,   r   r   r   r   )r0   rY   rZ   rK   r3   r   r   s   &      r5   test_irreg_hf_objectTestTSPlot.test_irreg_hf_object0  s    -CDII!!!$44c#h]C3
 

##%II$$V,	Br||~a(335d;<AAC b	C(4/446666r8   c                   \        \        P                  ! ^
\        P                  R7      \	        R^
R7      R7      pVP
                  . R	O,          p\        P                  P                  4       w  r#VP                  VR7      pVf   Q h\        VP                  4       ^ ,          P                  4       VP                  RR7       F  w  rVWV8X  d   K  Q h	  R# )
r=   r   r   r   r"   rp   NTstrict)r%   r'   r:      )r   r?   r   r   r   r   rD   rE   rF   r)   zipr,   r-   r#   )r0   r   rK   r3   retrsxps   &      r5   "test_irregular_datetime64_repr_bug-TestTSPlot.test_irregular_datetime64_repr_bug<  s    IIb

+:lTV3W
 hh|$

##%hh"ho",,.+5574PFB8O8 Qr8   c                N   \        \        ^4      \        R^R7      4      pRpVP                  ^ ,          P	                  4       p\
        P                  ! \        VR7      ;_uu_ 4        \        V\        V4      RR7      Vn        RRR4       \        P                  P                  4       w  rEVP                  VR7       VP                  4       ^ ,          P                  4       R
,          VP                  ^ ,          P                  8X  g   Q hVP                  4       ^ ,          P!                  4       p\
        P                  ! \        VR7      ;_uu_ 4        \#        VR	7      P$                  R8X  g   Q h RRR4       R#   + '       g   i     EL; i  + '       g   i     R# ; i)r   r   r   PeriodDtype\[B\] is deprecatedry   ro   startr   r    Nrp   datar$   )r   rC   r   r#   to_timestamptmassert_produces_warningFutureWarningrW   rD   rE   rF   r)   r,   r   r   r-   r   freqstr)r0   btsr~   dtrK   r3   rY   s   &      r5   test_business_freqTestTSPlot.test_business_freqJ  s   U1X|L!DE/YYq\&&(''SAA$2s3xcJCI B

##%B||~a ++-d3syy|7K7KKKKllnQ))+''SAAC(00C777 BA BAA BAAs   (E?F?F	F$	c           	     D   \        \        P                  ! ^2\        P                  R7      \	        R^2RR7      R7      P                  R4      pVP                  R4      p\        P                  P                  4       w  r4VP                  VR7       VP                  4       ^ ,          P                  4       R,          VP                  ^ ,          P                  8X  g   Q hVP                  4       ^ ,          P                  4       p\!        VR	7      P"                  R8X  g   Q hR
# )2   r   r   ro   r   r"   BMEr   rp   r  Nr$   )r   r?   r   r   r   asfreqr   rD   rE   rF   r)   r,   r   r#   r   r-   r   r  )r0   r  r2   rK   r3   rY   s   &     r5   test_business_freq_convert%TestTSPlot.test_business_freq_convertW  s    IIb

+\2C@
 &- 	 ]]3

##%B||~a ++-d3rxx{7J7JJJJllnQ))+$,,333r8   c                   \        4       p\        \        P                  ! ^
\        P                  R7      \        R^
R7      R7      P                  V4      p\        P                  P                  4       w  r4VP                  VR7       VP                  4       ^ ,          P                  4       pRp\        P                  ! \        VR7      ;_uu_ 4        \!        VR7       R	R	R	4       R	#   + '       g   i     R	# ; i)
r=   r   r   r   r"   rp   z)freq not specified and cannot be inferredry   r  N)r   r   r?   r   r   r   r"  rD   rE   rF   r)   r,   r-   r{   r|   r   r   )r0   r    r  rK   r3   rY   r~   s   &      r5   test_freq_with_no_period_alias)TestTSPlot.test_freq_with_no_period_aliasc  s    }IIb

+:lTV3W

&, 	 

##%BllnQ))+9]]:S11S! 2111s   C**C;	c                n   \        R ^RR7      \        ^R7      ,           p\        \        P                  ! ^4      VR7      p\
        P                  P                  4       w  r4VP                  VR7       VP                  4       ^ ,          P                  4       p\        V4      P                  '       d   Q hR# )z
2012-12-20r   r   minutesr"   rp   N)r   r   r	   r?   r   rD   rE   rF   r)   r,   r-   r
   is_normalized)r0   rY   rJ   rK   r3   r  s   &     r5   test_nonzero_baseTestTSPlot.test_nonzero_baseq  s    r<yQS?TTryy}C0

##%
2\\^A((*9******r8   c                   \        R \        \        P                  ! ^
\        P                  R7      \        R^
R7      R7      /4      p\        P                  P                  4       w  r#VP                  VR7       VP                  4       ^ ,          P                  4       p\        P                  ! VP                  P                  4       \!        V4      4       R# )ri   r   r   r   r"   rp   N)r	   r   r?   r   r   r   rD   rE   rF   r)   r,   r-   r  assert_index_equalr#   r   r   )r0   r  rK   r3   rY   s   &    r5   test_dataframeTestTSPlot.test_dataframez  s    VIIb

3$\2>
 

##%BllnQ))+
cii113[5EFr8   z8ignore:Period with BDay freq is deprecated:FutureWarningobjr   r"   ri   bc                2   \         P                  P                  4       w  r#VP                  VR 7       VP	                  4       pVP                  V^ ,          ^,
          V^,          ^
,           4       VP	                  4       pV^ ,          V^ ,          ^,
          8X  g   Q hV^,          V^,          ^
,           8X  g   Q h\        RVP                  4      \        RVP                  4      3pVP                  RR4       VP	                  4       p\        V^ ,          4      V^ ,          P                  8X  g   Q h\        V^,          4      V^,          P                  8X  g   Q h\        RVP                  4      \        RVP                  4      3pVP                  \        R^^4      \        R^^4      4       VP	                  4       p\        V^ ,          4      V^ ,          P                  8X  g   Q h\        V^,          4      V^,          P                  8X  g   Q hR# )rp   1/1/2000z4/1/2000r   N)rD   rE   rF   r)   get_xlimset_xlimr   r    intr   r   )r0   r2  rK   r3   xlimresultexpecteds   &&     r5   test_axis_limitsTestTSPlot.test_axis_limits  s   4 

##%B{{}
DGaKa2.ayDGaK'''ayDGbL((( :rww/
BGG1LM
J
+6!9~!!4!44446!9~!!4!4444 :rww/
BGG1LM
HT1a((4A*>?6!9~!!4!44446!9~!!4!4444r8   c                v   \         P                  ! \        R 4      4      \         P                  8X  g   Q h\         P                  ! \        R4      4      \         P                  8X  g   Q h\         P                  ! \        R4      4      \         P                  8X  g   Q h\         P                  ! \        R4      4      \         P
                  8X  g   Q h\         P                  ! \        R4      4      \         P                  8X  g   Q h\         P                  ! \        R4      4      \         P                  8X  g   Q hR# )ro   r   MEQErm   WN)r   
get_finderr   _daily_finder_monthly_finder_quarterly_finder_annual_finderr   s   &r5   test_get_finderTestTSPlot.test_get_finder  s    y~.$2D2DDDDy~.$2D2DDDDy/43G3GGGGy/43I3IIIIy/43F3FFFFy~.$2D2DDDDr8   c                   . R
OpRp\         P                  ! \        VR7      ;_uu_ 4        \        RRR7      P                  .\        V4      ,          ;r4RRR4       . p. pV EF8  p\        RVR7      p\        \        P                  P                  ^4      P                  \        V4      4      V4      p	\        P                  P                  4       w  rV	P                  VR7       VP!                  4       pVP#                  VP%                  4       ^ ,          4       VP'                  4       w  rVP)                  VR	,           V4       VP#                  VP%                  4       ^ ,          4       \        P                  P+                  VP-                  4       4       EK;  	  VX8X  g   Q hVX8X  g   Q hR#   + '       g   i     ELh; i)r=   z#Period with BDay freq is deprecatedry   z1999-1-1ro   rS   Nr   rp   ?)r=   (      i  i  i
  i'  )r  r  r  r   r   rW   r   r   r?   r@   rA   rB   rD   rE   rF   r)   	get_xaxisappendget_majorticklocsr6  r7  close
get_figure)r0   day_lstr~   xpl1xpl2rs1rs2nr   r   rK   r3   xaxisvminvmaxs   &              r5   test_finder_dailyTestTSPlot.test_finder_daily  sN   63''SAA!*37??@3w<OOD BAj!4C..q1AA#c(KSQCJJ'')EAHHHOLLNEJJu..034JDKKs
D)JJu..034JJR]]_-  d{{d{{% BAAs   *F44G	c                $   R ^.p\        R4      P                  .\        V4      ,          ;r#. p. pV EFI  p\        R\	        V^,          4      RR7      p\        \        P                  P                  ^4      P                  \        V4      4      V4      p\        P                  P                  4       w  rVP                  V
R7       V
P                  4       pVP                  VP!                  4       ^ ,          4       V
P#                  4       w  rV
P%                  VR,           V4       VP                  VP!                  4       ^ ,          4       \        P                  P'                  V
P)                  4       4       EKL  	  WB8X  g   Q hWS8X  g   Q hR# )g      @1988Q11987Q2Qr   rp   rJ  Nr   r   rW   r   r8  r   r?   r@   rA   rB   rD   rE   rF   r)   rM  rN  rO  r6  r7  rP  rQ  r0   yrsrS  rT  rU  rV  rW  r   r   rK   r3   rX  rY  rZ  s   &             r5   test_finder_quarterly TestTSPlot.test_finder_quarterly  s+   Bih'//03s8;;AxQU#FC..q1AA#c(KSQCJJ'')EAHHHOLLNEJJu..034;;=LTKKs
D)JJu..034JJR]]_-  {{{{r8   c                $   . ROp\        R4      P                  .\        V4      ,          ;r#. p. pV EFI  p\        R\	        V^,          4      RR7      p\        \        P                  P                  ^4      P                  \        V4      4      V4      p\        P                  P                  4       w  rVP                  V
R7       V
P                  4       pVP                  VP!                  4       ^ ,          4       V
P#                  4       w  rV
P%                  VR,           V4       VP                  VP!                  4       ^ ,          4       \        P                  P'                  V
P)                  4       4       EKL  	  WB8X  g   Q hWS8X  g   Q hR# )	ffffff?zJan 1988r_  r   r   rp   rJ  N)rg  g      @rT      ra  rb  s   &             r5   test_finder_monthlyTestTSPlot.test_finder_monthly  s'    j)112SX==AxQV3GC..q1AA#c(KSQCJJ'')EAHHHOLLNEJJu..034JDKKs
D)JJu..034JJR]]_-  {{{{r8   c                   \        R RRR7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        P                  P                  4       w  r4VP                  VR7       VP                  4       pVP                  4       ^ ,          p\        RR4      P                  pWg8X  g   Q hR# )r^  r   r   rp   1989Q1Ni   )r   r   r?   r@   rA   rB   rW   rD   rE   rF   r)   rM  rO  r   r   )r0   r   r   rK   r3   rX  r  r  s   &       r5   test_finder_monthly_long#TestTSPlot.test_finder_monthly_long  s    8W3?RYY**1-==c#hGM

##%B$$&q)Hc"**xxr8   c                R   . ROpV Uu. uF  p\        VRR7      P                  NK  	  pp. pR F  p\        RVRR7      p\        \        P
                  P                  ^4      P                  \        V4      4      V4      p\        P                  P                  4       w  rxVP                  VR7       VP                  4       p	VP                  V	P                  4       ^ ,          4       \        P                  P!                  VP#                  4       4       K  	  W18X  g   Q hR# u upi )	r   r   rS   1987r   rp   N)r   i    rq    i  i  iz  )r   r=      1   c      iW  i  )r   r   r   r   r?   r@   rA   rB   rW   rD   rE   rF   r)   rM  rN  rO  rP  rQ  )
r0   r  rr   r  nyearsr   r   rK   r3   rX  s
   &         r5   test_finder_annualTestTSPlot.test_finder_annual  s    =3562afQS!))269FvvC@C..q1AA#c(KSQCJJ'')EAHHHOLLNEIIe--/23JJR]]_- : xx 7s    D$c                   Rp\        RRVR7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        P                  P                  4       w  rEVP                  VR7       VP                  4       pVP                  4       ^ ,          p\        RRR7      P                  pWx8X  g   Q hR# )r'   1/1/1999MinrR   rp   rS   Ni  r   r   r?   r@   rA   rB   rW   rD   rE   rF   r)   rM  rO  r   r   )	r0   nminutesr   r   rK   r3   rX  r  r  s	   &        r5   test_finder_minutelyTestTSPlot.test_finder_minutely  s    %BRYY**1-==c#hGM

##%B$$&q)JU+33xxr8   c                   ^p\        RRVR7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        P                  P                  4       w  rEVP                  VR7       VP                  4       pVP                  4       ^ ,          p\        RRR7      P                  pWx8X  g   Q hR# )   r{  r   rR   rp   rS   Nr}  )	r0   nhoursr   r   rK   r3   rX  r  r  s	   &        r5   test_finder_hourlyTestTSPlot.test_finder_hourly*  s    #v>RYY**1-==c#hGM

##%B$$&q)JS)11xxr8   c                   \        \        P                  ! ^
\        P                  R7      \	        R^
R7      R7      p\        P
                  VP                  R&   \        P                  P                  4       w  r#VP                  VR7       VP                  4       p\        V4      ^8X  g   Q hV^ ,          pVP                  4       p\        P                  P                  V\!        V4      \        P
                  R7      p\#        V\        P                  P$                  P                  4      '       g   Q hVP&                  pVR	,          P)                  4       '       g   Q hR# )
r=   r   r   r   r"   r   r	  Nrp   mask
fill_valueNr  r'   )r   r?   r   r   r   nanr   rD   rE   rF   r)   r,   rW   r   maMaskedArrayr   
isinstancecorer  r   r0   r2   rK   r3   linesliner  r  s   &       r5   	test_gapsTestTSPlot.test_gaps6  s    IIb

+:lTV3W
 vv

##%
25zQQx uu  DJ266 J$

 6 67777yyF|!!!!r8   c                   \        \        P                  ! ^\        P                  R7      \	        R^R7      R7      pVP
                  . R	O,          p\        P                  VP
                  R&   \        P                  P                  4       w  r#VP                  VR7      pVP                  4       p\        V4      ^8X  g   Q hV^ ,          pVP                  4       p\        P                  P                  V\!        V4      \        P                  R7      p\#        V\        P                  P$                  P                  4      '       g   Q hVP&                  pVR
,          P)                  4       '       g   Q hR# )   r   r   r   r"   r:   r   Nrp   r  N	r%   r'   r:   r   r	  r>            r  r'   )r   r?   r   r   r   r   r  rD   rE   rF   r)   r,   rW   r   r  r  r   r  r  r  r   r  s   &       r5   test_gaps_irregularTestTSPlot.test_gaps_irregularH  s   IIb

+:lTV3W
 WW34vv

##%WWW^5zQQx uu  DJ266 J$

 6 67777yyF|!!!!r8   c                   . ROp\        \        P                  P                  ^4      P	                  \        V4      4      V4      p\        P                  VP                  R&   \        P                  P                  4       w  r4VP                  VR7       VP                  4       p\        V4      ^8X  g   Q hV^ ,          pVP                  4       p\        P                  P                  V\!        V4      \        P                  R7      p\#        V\        P                  P$                  P                  4      '       g   Q hVP&                  pVR,          P)                  4       '       g   Q hR# )r%   r  rp   r  Nr  r  )r   r?   r@   rA   rB   rW   r  r   rD   rE   rF   r)   r,   r   r  r  r   r  r  r  r   )	r0   rY   r   rK   r3   r  r  r  r  s	   &        r5   test_gaps_non_tsTestTSPlot.test_gaps_non_ts\  s    ,RYY**1-==c#hGM

##%B5zQQx uu  DJ266 J$

 6 67777yyF|!!!!r8   c                    \        \        P                  ! ^
\        P                  R7      \	        R^
R7      R7      p\        P
                  VP                  R&   \        P                  P                  4       w  r#VP                  VR7       \	        VP                  ^ ,          VP                  R,          RR7      p\        \        P                  P                  ^4      P                  \        V4      4      V4      pVP                  R	R
7       VP!                  4       p\        V4      ^8X  g   Q h\        VP"                  P!                  4       4      ^8X  g   Q hV^ ,          pVP%                  4       p\        P&                  P)                  V\+        V4      \        P
                  R7      p\-        V\        P&                  P.                  P(                  4      '       g   Q hVP0                  p	V	R,          P3                  4       '       g   Q hR# )r=   r   r   r   r"   r  rp   12hrS   Tsecondary_yr  Nr&   r  )r   r?   r   r   r   r  r   rD   rE   rF   r)   r#   r@   rA   rB   rW   r,   right_axr   r  r  r   r  r  r  r   )
r0   lowrK   r3   idxhr   r  r  r  r  s
   &         r5   test_gap_upsampleTestTSPlot.test_gap_upsamplem  sh   IIb

+:lTV3W
 

##%B#))A,		"EB299((+;;CIFM	4 5zQ2;;((*+q000Qx uu  DJ266 J$

 6 67777yyF|!!!!r8   c                   \        \        P                  P                  ^4      P	                  ^
4      4      p\
        P                  P                  4       w  r#VP                  RR7      p\        VR4      '       g   Q h\        VR4      '       d   Q hVP                  4       pVP                  4       ^ ,          p\        VP                  4       VP                  4       4      p\        P                  ! W4       VP!                  4       P#                  4       R8X  g   Q hV^ ,          P!                  4       P%                  4       '       d   Q hR# )r:   Tr  left_axr  rightN)r   r?   r@   rA   rB   rD   rE   rF   r)   r   get_axesr,   r   r-   r  assert_series_equal	get_yaxisget_ticks_positionget_visible)r0   r   ru   rK   r3   axesr  r  s   &       r5   test_secondary_yTestTSPlot.test_secondary_y  s    RYY**1-==bAB$$&XX$X'r9%%%%2z****||~||~a DNN$dnn&67
s'||~002g===7$$&2244444r8   c                   \        \        P                  P                  ^4      P	                  ^
4      4       \        \        P                  P                  ^4      P	                  ^
4      4      p\
        P                  P                  4       w  r#VP                  VR7       VP                  4       P                  4       R8X  g   Q hR# )r:   rp   leftN)r   r?   r@   rA   rB   rD   rE   rF   r)   r  r  )r0   ser2rK   ax2s   &   r5   test_secondary_y_yaxis!TestTSPlot.test_secondary_y_yaxis  s    ryy$$Q'77;<bii++A.>>rBC$$&		S	}}113v===r8   c                   \        \        P                  P                  ^4      P	                  ^
4      4      p\        \        P                  P                  ^4      P	                  ^
4      4      pVP                  4       pVP                  RR7      pVP                  4       P                  4       '       g   Q h\        VR4      '       d   Q h\        VR4      '       g   Q h\        VR4      '       g   Q h\        VR4      '       d   Q hR# )r:   Tr  r  r  N)	r   r?   r@   rA   rB   r)   r  r  r   )r0   r   r  r3   r  s   &    r5   test_secondary_bothTestTSPlot.test_secondary_both  s    RYY**1-==bABbii++A.>>rBCYY[hh4h(||~))++++2y))))r:&&&&sI&&&&3
+++++r8   c                   \        R ^
RR7      p\        \        P                  P	                  ^4      P                  ^
4      V4      p\        P                  P                  4       w  r4VP                  RR7      p\        VR4      '       g   Q h\        VR4      '       d   Q hVP                  4       pVP                  4       ^ ,          p\        VP                  4       VP                  4       4      P                  4       pVP                   P#                  R4      Vn        \$        P&                  ! W(4       VP)                  4       P+                  4       R8X  g   Q hV^ ,          P)                  4       P-                  4       '       d   Q hR# )	r5  ns)r   unitTr  r  r  r  N)r   r   r?   r@   rA   rB   rD   rE   rF   r)   r   r  r,   r   r-   r  r#   as_unitr  r  r  r  r  )	r0   rY   r   ru   rK   r3   r  r  r  s	   &        r5   test_secondary_y_tsTestTSPlot.test_secondary_y_ts  s$   Rd;RYY**1-==bA3G$$&XX$X'r9%%%%2z****||~||~a DNN$dnn&67DDF88##D)
s'||~002g===7$$&2244444r8   c                >   \        R ^
R7      p\        \        P                  P	                  ^4      P                  ^
4      V4      p\        P                  P                  4       w  r4VP                  VR7       VP                  4       P                  4       R8X  g   Q hR# )r5  r   rp   r  N)r   r   r?   r@   rA   rB   rD   rE   rF   r)   r  r  )r0   rY   r  rK   r  s   &    r5   test_secondary_y_ts_yaxis$TestTSPlot.test_secondary_y_ts_yaxis  ss    R0bii++A.>>rBCH$$&		S	}}113v===r8   c                    \        R ^
R7      p\        \        P                  P	                  ^4      P                  ^
4      V4      pVP                  4       pVP                  4       P                  4       '       g   Q hR# )r5  r   N)	r   r   r?   r@   rA   rB   r)   r  r  )r0   rY   r  r3   s   &   r5   test_secondary_y_ts_visible&TestTSPlot.test_secondary_y_ts_visible  sZ    R0bii++A.>>rBCHYY[||~))++++r8   c                   \         P                  ! R 4       \        \        P                  P                  ^4      P                  ^
4      4      p\        P                  P                  4       w  r#VP                  RRVR7      p\        VR4      '       g   Q h\        VR4      '       d   Q hVP                  4       pV^,          P                  4       P                  4       R8X  g   Q hR# )scipyTdensityr  kindr3   r  r  r  N)r{   importorskipr   r?   r@   rA   rB   rD   rE   rF   r)   r   r  r  r  r0   r   ru   r3   r  s   &    r5   test_secondary_kdeTestTSPlot.test_secondary_kde  s    G$RYY**1-==bAB**%%'XX$Y2X>r9%%%%2z****||~Aw  "5577BBBr8   c                T   \        \        P                  P                  ^4      P	                  ^
4      4      p\
        P                  P                  4       w  r#VP                  RRVR7       VP                  4       pV^,          P                  4       P                  4       R8X  g   Q hR# )r:   Tbarr  r  N)r   r?   r@   rA   rB   rD   rE   rF   r)   r  r  r  r  s   &    r5   test_secondary_barTestTSPlot.test_secondary_bar  s{    RYY**1-==bAB**%%'T"5||~Aw  "5577BBBr8   c                   \        \        P                  P                  ^4      P	                  R	4      . R
OR7      pVP                  RR.RR7      pV^ ,          P                  4       P                  4       R8X  g   Q hV^,          P                  4       P                  4       R8X  g   Q hV^,          P                  4       P                  4       R8X  g   Q hR# )r:   ri   cr   T)r  rF   r  r  Nr   rf   ri   r3  r  r	   r?   r@   rA   rB   r)   r  r  r0   rJ   r  s   &  r5   test_secondary_frameTestTSPlot.test_secondary_frame  s    II!!!$44V<o
 wwC:w=Aw  "5577BBBAw  "5576AAAAw  "5577BBBr8   c                   \        \        P                  P                  ^4      P	                  R
4      . ROR7      pVP                  RRR.RR7      pV^ ,          P                  4       P                  4       R8X  g   Q hV^,          P                  4       P                  4       R8X  g   Q hV^,          P                  4       P                  4       R8X  g   Q hR	# )r:   ri   r  r  r  T)r  r  rF   r  r  Nr  r  r  r  s   &  r5   test_secondary_bar_frame#TestTSPlot.test_secondary_bar_frame  s    II!!!$44V<o
 wwESzDwIAw  "5577BBBAw  "5576AAAAw  "5577BBBr8   c           	        \        \        P                  ! ^\        P                  R7      \	        R^RR7      R7      pVP
                  . RO,          p\        P                  P                  4       w  r4VP                  VR7       VP                  RVR7      pVP                  4       pR	p\        P                  ! \        VR
7      ;_uu_ 4        \        V^ ,          P                  4       4      p\        V^,          P                  4       4      p	\        P                   ! WP"                  P%                  R4      4       \        P                   ! WP"                  P%                  R4      4       VP'                  4       w  rVP"                  P%                  4       pRRR4       X
X^ ,          P(                  8:  g   Q hXVR,          P(                  8  g   Q hR#   + '       g   i     LF; i)r  r   r   ro   r   r"   rp   gr   r  ry   Nr%   r   r=   rh  r        r  r&   )r   r?   r   r   r   r   rD   rE   rF   r)   r,   r  r  r  r   r-   r/  r#   r   r6  r   r0   s1s2rK   r3   r  r  r~   idx1idx2r  r  pidxs   &            r5   test_mixed_freq_regular_first(TestTSPlot.test_mixed_freq_regular_first  sZ   IIb

+\2C@
 WW34 

##%
2ggCBg'/''SAAuQx1134DuQx1134D!!$(:(:3(?@!!$(:(:3(?@,,.KD88%%'D B tAw&&&R((((( BAs   CGG'	c                   \        \        P                  ! ^\        P                  R7      \	        R^R7      R7      pVP
                  . R
O,          p\        P                  P                  4       w  r4VP                  RVR7       VP                  VR7       \        VR4      '       d   Q hVP                  4       pV^ ,          P                  4       p\        P                  ! WbP                  P!                  \"        4      P$                  4       V^,          P                  4       p\        P                  ! WqP                  P!                  \"        4      P$                  4       R	# )r  r   r   r   r"   r  r   rp   r    Nr  )r   r?   r   r   r   r   rD   rE   rF   r)   r   r,   r-   r  assert_numpy_array_equalr#   r  r  rV   r0   r  r  rK   r3   r  x1x2s   &       r5   test_mixed_freq_irregular_first*TestTSPlot.test_mixed_freq_irregular_first  s    IIb

+:lTV3W
 WW34

##%
cb!
22v&&&&1X!
##B(?(F(FG1X!
##B(?(F(FGr8   c           	         \        \        P                  ! ^\        P                  R7      \	        R^RR7      R7      P                  4       pVP                  . ROR3,          p\        P                  P                  4       w  r4VP                  VR7       VP                  RVR	7      pVP                  4       pR
p\        P                  ! \        VR7      ;_uu_ 4        \        V^ ,          P!                  4       4      p\        V^,          P!                  4       4      p	VP#                  VP$                  P'                  R4      4      '       g   Q hV	P#                  VP$                  P'                  R4      4      '       g   Q hVP)                  4       w  rVP$                  P'                  4       pRRR4       X
X^ ,          P*                  8:  g   Q hXVR,          P*                  8  g   Q hR#   + '       g   i     LF; i)r  r   r   ro   r   r"   r   rp   r  r   r  ry   Nr  r&   )r   r?   r   r   r   to_framer   rD   rE   rF   r)   r,   r  r  r  r   r-   equalsr#   r   r6  r   r  s   &            r5    test_mixed_freq_regular_first_df+TestTSPlot.test_mixed_freq_regular_first_df  sw   IIb

+\2C@
 (* 	 WW3Q67

##%
2ggCBg'/''SAAuQx1134DuQx1134D;;rxx11#67777;;rxx11#67777,,.KD88%%'D B tAw&&&R((((( BAs   B"G-.G--G=	c                   \        \        P                  ! ^\        P                  R7      \	        R^R7      R7      P                  4       pVP                  . ROR3,          p\        P                  P                  4       w  r4VP                  RVR7       VP                  VR7       \        VR	4      '       d   Q hVP                  4       pV^ ,          P                  4       p\        P                  ! WbP                   P#                  \$        4      P&                  4       V^,          P                  4       p\        P                  ! WqP                   P#                  \$        4      P&                  4       R
# )r  r   r   r   r"   r   r  r   rp   r    Nr  )r   r?   r   r   r   r  r   rD   rE   rF   r)   r   r,   r-   r  r  r#   r  r  rV   r  s   &       r5   "test_mixed_freq_irregular_first_df-TestTSPlot.test_mixed_freq_irregular_first_df"  s    IIb

+:lTV3W

(* 	 WW3Q67

##%
cb!
22v&&&&1X!
##B(?(F(FG1X!
##B(?(F(FGr8   c                N   \        R RRR7      p\        R ^RR7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        P                  P                  4       w  rVVP                  VR7       VP                  VR7       VP                  4        F.  p\        VP                  4       R7      P                  R8X  d   K.  Q h	  R# )r{  m  r   r   r?  rp   r  Nr   r   r?   r@   rA   rB   rW   rD   rE   rF   r)   r,   r   r-   r    r0   r  idxlhighr  rK   r3   r  s   &       r5   test_mixed_freq_hf_first#TestTSPlot.test_mixed_freq_hf_first2  s    *c<*bt<bii++A.>>s4yI4PRYY**1-==c$iH$O

##%		R	BLLNDDNN$45::cAAA #r8   c                   \        R RRR7      p\        P                  P                  ^4      P	                  ^4      p\        W!R7      pVP                  R4      P                  4       p\        P                  P                  4       w  rVVP                  VR7      pVP                  RVR7       VP                  ^ ,          P                  4       ^ ,          VP                  ^,          P                  4       ^ ,          8X  g   Q hR	# )
z2012-01-01 13:00
2012-01-02r   rS   r"   minrp   rr   N)r   r?   r@   rA   rB   r   r"  interpolaterD   rE   rF   r)   r  r-   )r0   ts_indts_datar2   ts2rK   r3   s   &      r5   test_mixed_freq_alignment$TestTSPlot.test_mixed_freq_alignment=  s    .3G))''*::2>G*ii**,

##%WWW^sr"xx{$$&q)RXXa[-B-B-DQ-GGGGr8   c                   \        R RRR7      p\        R ^RR7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        P                  P                  4       w  rVVP                  RVR7       VP                  RVR7       VP                  4        F.  p\        VP                  4       R7      P                  R8X  d   K.  Q h	  VP                  4       p\        VP                   4      ^8X  g   Q h\        P                  P#                  VP%                  4       4       R# )	r{  r  r   r   r?  T)legendr3   r  N)r   r   r?   r@   rA   rB   rW   rD   rE   rF   r)   r,   r   r-   r    
get_legendtextsrP  rQ  )	r0   r  r  r  r  rK   r3   r  legs	   &        r5   test_mixed_freq_lf_first#TestTSPlot.test_mixed_freq_lf_firstJ  s   *c<*bt<bii++A.>>s4yI4PRYY**1-==c$iH$O

##%$		"	%LLNDDNN$45::cAAA #mmo399~"""

)r8   c                N   \        R ^RR7      p\        R ^RR7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        P                  P                  4       w  rVVP                  VR7       VP                  VR7       VP                  4        F.  p\        VP                  4       R7      P                  R8X  d   K.  Q h	  R# )r{  r  r   r   rp   r  Nr  r  s   &       r5   test_mixed_freq_lf_first_hourly*TestTSPlot.test_mixed_freq_lf_first_hourlyX  s    *c>*ac:bii++A.>>s4yI4PRYY**1-==c$iH$O

##%B		R	LLNDDNN$45::eCCC #r8   c                R   \        \        P                  ! ^\        P                  R7      \	        R^R7      R7      pVP
                  . RO,          pRp\        P                  ! \        VR7      ;_uu_ 4        \        R^RR	7      pR
R
R
4       \        \        P                  P                  ^4      P                  \        X4      4      V4      p\        P                  P!                  4       w  rgVP#                  VR7       VP#                  VR7       R
#   + '       g   i     L; i)r  r   r   r   r"   r  ry   z1/3/2000ro   r   Nrp   )r%   r'   r:   rf   rT   r   rU   r	     r>   r=   r              )r   r?   r   r   r   r   r  r  r  r   r@   rA   rB   rW   rD   rE   rF   r)   )r0   r2   r   r~   r   psrK   r3   s   &       r5   test_mixed_freq_irreg_period'TestTSPlot.test_mixed_freq_irreg_periodc  s    IIb

+:lTV3W
 NO/''SAAz2C@C BBII))!,<<SXFL

##%

b

2 BAs   8DD&	c                b   \        R ^RR7      pVR,          P                  VR,          4      p\        \        \	        V4      4      V4      p\        \        \	        V4      4      V4      p\
        P                  P                  ^RR7      w  pw  rgVP                  VR7       VP                  VR7       VP                  R8X  g   Q hVP                  R8X  g   Q hVP                  ^ ,          P                  4       R
,          VP                  ^ ,          P                  4       R
,          8X  g   Q hR	# )
2015-01-01r?  r   Nr'   Nr:   NNT)nrowssharexrp   r   Nr$   )r   rX   r   rC   rW   rD   rE   rF   r)   r    r  r   r0   r  r  r  r  rK   ax1r  s   &       r5   test_mixed_freq_shared_ax$TestTSPlot.test_mixed_freq_shared_axq  s    ,=Bx~~d2h'E#d)$d+E#d)$d+

++!D+A:C
3
3xx3xx3yy|&&(.#))A,2I2I2KD2QQQQr8   c                *   \        R ^RR7      pVR,          P                  VR,          4      p\        \        \	        V4      4      V4      p\        \        \	        V4      4      V4      p\
        P                  P                  4       w  rVVP                  4       pVP                  VR7       VP                  VR7       VP                  ^ ,          P                  4       R,          VP                  ^ ,          P                  4       R,          8X  g   Q hR# r'  r?  r   r(  r)  rp   Nr$   r   rX   r   rC   rW   rD   rE   rF   twinxr)   r  r   r,  s   &       r5    test_mixed_freq_shared_ax_twin_x+TestTSPlot.test_mixed_freq_shared_ax_twin_x  s    ,=Bx~~d2h'E#d)$d+E#d)$d+$$&iik
3
3yy|&&(.#))A,2I2I2KD2QQQQr8   zTODO (GH14330, GH14322))reasonc                *   \        R ^RR7      pVR,          P                  VR,          4      p\        \        \	        V4      4      V4      p\        \        \	        V4      4      V4      p\
        P                  P                  4       w  rVVP                  4       pVP                  VR7       VP                  VR7       VP                  ^ ,          P                  4       R,          VP                  ^ ,          P                  4       R,          8X  g   Q hR# r1  r2  r,  s   &       r5   0test_mixed_freq_shared_ax_twin_x_irregular_first;TestTSPlot.test_mixed_freq_shared_ax_twin_x_irregular_first  s     ,=Bx~~d2h'E#d)$d+E#d)$d+$$&iik
3
3yy|&&(.#))A,2I2I2KD2QQQQr8   c                   \         P                  P                  4       w  r\        R \        R.4      p\        \        \        V4      4      V4      pVP                  VR7       VP                  4       ^ ,          P                  4       pVP                  P                  4       \        V4      P                  4       8:  g   Q h\        V4      P                  4       VP                  P                  4       8:  g   Q hR# )r'  z
2015-01-03rp   N)rD   rE   rF   r   r   r   rC   rW   r)   r,   r-   r#   r  max)r0   rK   r3   dtir   r4   s   &     r5   test_nat_handlingTestTSPlot.test_nat_handling  s    

##%\3=>5S?C(	"q!++-ww{{}u 1 1 3333e}  "aggkkm333r8   c                R   \        R ^4RR7      p\        R ^RR7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        P                  P                  4       w  rVVP                  VR7       Rp\        P                  ! \        VR7      ;_uu_ 4        VP                  VRR7       R	R	R	4       R	#   + '       g   i     R	# ; i)
r{  rA  r   r?  rp   zz'how' is not a valid keyword for plotting functions. If plotting multiple objects on shared axes, resample manually first.ry   foo)r3   howN)r   r   r?   r@   rA   rB   rW   rD   rE   rF   r)   r{   r|   r   )r0   r  r  r  r  rK   r3   r~   s   &       r5   *test_to_weekly_resampling_disallow_how_kwd5TestTSPlot.test_to_weekly_resampling_disallow_how_kwd  s    *bs;*bt<bii++A.>>s4yI4PRYY**1-==c$iH$O

##%		R	H 	 ]]:S11HHH& 2111s   7DD&	c                b   \        R ^4RR7      p\        R ^RR7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        P                  P                  4       w  rVVP                  VR7       VP                  VR7       VP                  4        F8  p\        VP                  4       R7      P                  VP                  8X  d   K8  Q h	  R# )r{  rA  r   r?  rp   r  Nr  r  s   &       r5   test_to_weekly_resampling$TestTSPlot.test_to_weekly_resampling  s    *bs;*bt<bii++A.>>s4yI4PRYY**1-==c$iH$O

##%		R	BLLNDDNN$45::diiGGG #r8   c                   \        R ^4RR7      p\        R ^RR7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        P                  P                  4       w  rVVP                  VR7       VP                  VR7       VP                  4       P                  P                  \        P                  4      p\        P                  ! . R
O\        P                  R7      pVP!                  4        F  p	\#        V	P%                  4       R7      P&                  VP&                  8X  g   Q hV	P%                  RR7      p
\        V
4      ^8X  d   \(        P*                  ! W4       Kr  \(        P*                  ! W4       K  	  R	# )r{  rA  r   r?  rp   r   r  ForigNi  i  i  i  i  i   i  i  i  i  i  i  )r   r   r?   r@   rA   rB   rW   rD   rE   rF   r)   r   asi8r  r   rg   r,   r   r-   r    r  r  )r0   r  r  r  r  rK   r3   
expected_h
expected_lr  r4   s   &          r5   test_from_weekly_resampling&TestTSPlot.test_from_weekly_resampling  sH   *bs;*bt<bii++A.>>s4yI4PRYY**1-==c$iH$O

##%B		R	^^%**11"**=
XXT**

 LLNDDNN$45::diiGGGNNN.E5zR++E>++E> #r8   zkind1, kind2c                t   \        R ^4RR7      p\        R ^RR7      p\        \        P                  P	                  ^4      P                  \        V4      ^34      V. ROR7      p\        \        P                  P	                  ^4      P                  \        V4      ^34      V. ROR7      p\        P                  P                  4       w  rxVP                  VRVR7       VP                  VRVR7       \        P                  ! . RO\        P                  R7      p	\        P                  ! \        V	4      \        P                  R7      p
\        ^4       F  pVP                  V,          p\        VP!                  4       4      P"                  VP"                  8X  g   Q h\$        P&                  ! VP!                  RR	7      V	4       WV,          P(                  ,          p
\$        P&                  ! VP+                  RR	7      V
4       K  	  VP-                  4       P.                  P1                  \        P                  4      p	\        P                  ! \        V	4      \        P                  R7      p
\        ^4       F  pVP                  ^V,           ,          p\        VP!                  4       R
7      P"                  VP"                  8X  g   Q h\$        P&                  ! VP!                  RR	7      V	4       WV,          P(                  ,          p
\$        P&                  ! VP+                  RR	7      V
4       K  	  R# )r{  rA  r   r?  r   Tr  stackedr3   r   FrH  r  Nr%   r'   r:   rJ  )r   r	   r?   r@   rA   rW   rD   rE   rF   r)   rg   r   zerosrC   r  r   r-   r    r  r  rV   r   r   rK  r  )r0   kind1kind2r  r  r  r  rK   r3   
expected_x
expected_yrh   r  s   &&&          r5   $test_from_resampling_area_line_mixed/TestTSPlot.test_from_resampling_area_line_mixed  sE   *bs;*bt<II!!!$++SYN;

 II!!!$++SYN;
 

##%eTb1		udr	2 XX **

" XXc*oRZZ@
qA88A;Dt~~/055BBB''E(BJOa&--'J''E(BJO  ^^%**11"**=
XXc*oRZZ@
qA88AE?DDNN$45::diiGGG''E(BJOq'..(J''E(BJO r8   c                v   \        R ^4RR7      p\        R ^RR7      p\        \        P                  P	                  ^4      P                  \        V4      ^34      V. ROR7      p\        \        P                  P	                  ^4      P                  \        V4      ^34      V. ROR7      p\        P                  P                  4       w  rxVP                  VRVR7       VP                  VRVR7       VP                  4       P                  P                  \        P                  4      p	\        P                  ! \        V	4      \        P                  R7      p
\        ^4       F  pVP                   V,          p\#        VP%                  4       R7      P&                  VP&                  8X  g   Q h\(        P*                  ! VP%                  R	R
7      V	4       WV,          P,                  ,          p
\(        P*                  ! VP/                  R	R
7      V
4       K  	  \        P0                  ! . RO\        P                  R7      p	\        P                  ! \        V	4      \        P                  R7      p
\        ^4       F  pVP                   ^V,           ,          p\#        VP%                  4       R7      P&                  VP&                  8X  g   Q h\(        P*                  ! VP%                  R	R
7      V	4       WV,          P,                  ,          p
\(        P*                  ! VP/                  R	R
7      V
4       K  	  R# )r{  rA  r   r?  r   TrQ  r   r  FrH  NrS  rJ  )r   r	   r?   r@   rA   rW   rD   rE   rF   r)   r   rK  r  r   rT  rC   r  r   r-   r    r  r  rV   r   rg   )r0   rU  rV  r  r  r  r  rK   r3   rW  rX  rh   r  r  s   &&&           r5   0test_from_resampling_area_line_mixed_high_to_low;TestTSPlot.test_from_resampling_area_line_mixed_high_to_low  sE   *bs;*bt<II!!!$++SYN;

 II!!!$++SYN;

 

##%		udr	2eTb1 ^^%**11"**=
XXc*oRZZ@
qA88A;DDNN$45::diiGGG''E(BJOq'..(J''E(BJO  XX **

" XXc*oRZZ@
qAHHQUOEEOO$56;;tyyHHH''U(CZPa&--'J''U(CZP r8   c                   \        R R^R7      p\        R R^2R7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        P                  P                  4       w  rVVP                  VR7       VP                  VR7       \        VP                  4       4      ^8X  g   Q hVP                  4        F.  p\        VP                  4       R7      P                  R8X  d   K.  Q h	  R# z2014-07-01 09:00r   rR   100msrp   r  r   Nr  r  s   &       r5   "test_mixed_freq_second_millisecond-TestTSPlot.test_mixed_freq_second_millisecondD  s    ,3B,7BGbii++A.>>s4yI4PRYY**1-==c$iH$O

##%		R	B2<<>"a'''LLNDDNN$45::dBBB #r8   c                   \        R R^R7      p\        R R^2R7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        P                  P                  4       w  rVVP                  VR7       VP                  VR7       \        VP                  4       4      ^8X  g   Q hVP                  4        F.  p\        VP                  4       R7      P                  R8X  d   K.  Q h	  R# r_  r  r  s   &       r5   .test_mixed_freq_second_millisecond_low_to_high9TestTSPlot.test_mixed_freq_second_millisecond_low_to_highR  s    ,3B,7BGbii++A.>>s4yI4PRYY**1-==c$iH$O

##%B		R	2<<>"a'''LLNDDNN$45::dBBB #r8   c                    \        R ^^4      \        R ^^4      \        R ^^4      .p\        \        P                  P	                  ^4      P                  \        V4      ^34      \        V\        R7      4      p\        VP                  4       R# )r   r   N)r   r	   r?   r@   rA   rB   rW   r
   r  r(   r)   r_   s   &  r5   test_irreg_dtypesTestTSPlot.test_irreg_dtypes`  sp    D!QdAq!14a3DEII!!!$44c#h]C#V$
 	"''"r8   c                P   \        R ^
R7      pV. RO,          P                  \        4      p\        \        P
                  P                  ^4      P                  \        V4      ^34      V4      p\        P                  P                  4       w  r4\        VP                  VR7       R# )r5  r   rp   N)r%   r:   r   r>   )r   r  r  r	   r?   r@   rA   rB   rW   rD   rE   rF   r(   r)   )r0   rY   rJ   rK   r3   s   &    r5   test_irreg_dtypes_dt64!TestTSPlot.test_irreg_dtypes_dt64i  st    R0,&&v.ryy,,Q/??S1NPST

##%"''b)r8   c                (   \        ^^^^^^ 4      p\        P                  P                  ^4      P	                  ^^^4      P                  4       p\        P                  ! V Uu. uF,  q1\        \        V4      R7      ,           P                  4       NK.  	  up4      p\        R\        P                  P                  ^4      P                  \        V4      4      R\        P                  P                  ^4      P                  \        V4      4      /VR7      p\        P                  P                  4       w  rgVP!                  VR7       VP#                  4       pVP%                  4       p	\'        WRR7       F  w  r\)        \        V
4      ^<4      w  r\)        V^<4      w  rVP+                  4       p\        V4      ^ 8  g   KL  V^ 8w  d   \        WV4      P-                  R4      pM\        WV4      P-                  R	4      pVV8X  d   K  Q h	  R
# u upi )r'   r)  ri   r3  r"   rp   Tr  %H:%M:%S%H:%MN)r   r?   r@   rA   integerscumsumrg   r   r8  r   r	   rB   rW   rD   rE   rF   r)   
get_xticksrG   r
  divmodget_textstrftimer0   tdeltasrr   r2   rJ   rK   r3   tickslabels_tick_labelmr   r   r  r  s   &                r5   	test_timeTestTSPlot.test_timeq  s   Q1aQ'&&q)221b!<CCEXXvNv!Ic!f55;;=vNORYY**1-==c"gFRYY**1-==c"gF 
 

##%
2 ##% t<ME#e*b)DA!R=DA"B2w{6aA//
;BaA//8BRxx = Os   #2Hc                   \        ^^^^^^ 4      p\        P                  P                  ^4      P	                  ^^^4      P                  4       p\        P                  ! V Uu. uF,  q1\        \        V4      R7      ,           P                  4       NK.  	  up4      p\        R\        P                  P                  ^4      P                  \        V4      4      R\        P                  P                  ^4      P                  \        V4      4      /VR7      p\        P                  P                  4       w  rgVP!                  VR7       VP#                  4       pVP%                  4       p	\'        WRR7       F  w  r\)        \        V
4      ^<4      w  r\)        V^<4      w  rVP+                  4       p\        V4      ^ 8  g   KL  V^ 8w  d   \        WV4      P-                  R4      pM\        WV4      P-                  R	4      pVV8X  d   K  Q h	  VP/                  R
R4       VP#                  4       pVP%                  4       p	\'        WRR7       F  w  r\)        \        V
4      ^<4      w  r\)        V^<4      w  rVP+                  4       p\        V4      ^ 8  g   KL  V^ 8w  d   \        WV4      P-                  R4      pM\        WV4      P-                  R	4      pVV8X  d   K  Q h	  R# u upi )r'   r)  ri   r3  r"   rp   Tr  rm  rn  z1:30z5:00N)r   r?   r@   rA   ro  rp  rg   r   r8  r   r	   rB   rW   rD   rE   rF   r)   rq  rG   r
  rr  rs  rt  r7  ru  s   &                r5   test_time_change_xlim TestTSPlot.test_time_change_xlim  sK   Q1aQ'&&q)221b!<CCEXXvNv!Ic!f55;;=vNORYY**1-==c"gFRYY**1-==c"gF 
 

##%
2 ##% t<ME#e*b)DA!R=DA"B2w{6aA//
;BaA//8BRxx = 	FF# ##% t<ME#e*b)DA!R=DA"B2w{6aA//
;BaA//8BRxx =? Os   #2K%c                   \        ^^^^^^ 4      p\        P                  P                  ^4      P	                  ^^^4      P                  4       p\        P                  ! V Uu. uF,  q1\        \        V4      R7      ,           P                  4       NK.  	  up4      p\        R\        P                  P                  ^4      P                  \        V4      4      R\        P                  P                  ^4      P                  \        V4      4      /VR7      p\        P                  P                  4       w  rgVP!                  VR7      pVP#                  4       pVP%                  4       p	\'        WRR7       EF  w  r\)        \        V
4      ^<4      w  r\+        V
\        V
4      ,
          R,          4      p\)        V^<4      w  rVP-                  4       p\        V4      ^ 8  g   Ko  VR	,          ^ 8w  d   \        WW4      P/                  R
4      pMkVR	,          ^ 8w  d    \        WW4      P/                  R
4      RR pM>V^ 8w  d   \        WW4      P/                  R4      pM\        WW4      P/                  R4      pVV8X  d   EK  Q h	  R# u upi )r'   )microsecondsri   r3  r"   rp   Tr  g    .Ai  z%H:%M:%S.%fNrm  rn  )r   r?   r@   rA   ro  rp  rg   r   r8  r   r	   rB   rW   rD   rE   rF   r)   rq  rG   r
  rr  roundrs  rt  )r0   rv  rw  rr   r2   rJ   rK   r3   rx  ry  rz  r{  r|  r   r   r   r  r  s   &                 r5   test_time_musecTestTSPlot.test_time_musec  s   Q1aQ'&&q)221b!<CCEXXFSFqI3q6::@@BFSTRYY**1-==c"gFRYY**1-==c"gF 
 

##%WWW^ ##% t<<ME#e*b)DAE
*c12B!R=DA"B2w{I!#aA*33MBBDjQ&aA*33MB3BGB!VaA*33J?BaA*33G<BRxx! = Ts   #2J
c                4   \        R RRR7      p\        R ^RR7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        P                  P                  4       w  rVVP                  VR7       VP                  RVR7      pVP                  4        F-  p\        VP                  4       4      P                  R8X  d   K-  Q h	  \        VR4      '       g   Q h\        VR	4      '       d   Q hVP                   P                  4        F-  p\        VP                  4       4      P                  R8X  d   K-  Q h	  R
# )r{  r  r   r   r?  rp   Tr  r3   r  r  N)r   r   r?   r@   rA   rB   rW   rD   rE   rF   r)   r,   r   r-   r    r   r  r  s   &       r5   test_secondary_upsample"TestTSPlot.test_secondary_upsample  s2   *c<*bt<bii++A.>>s4yI4PRYY**1-==c$iH$O

##%BYY4BY/LLNDt~~/055<<< #r9%%%%2z****JJ((*Dt~~/055<<< +r8   c           
        \         P                  P                  4       pVP                  ^4      p\	        \
        P                  P                  ^4      P                  R4      \        \        R4      \        R7      \        R^
RR7      R7      pVP                  RR.VR7       VP                  4       p\        VP!                  4       4      ^8X  g   Q hVP#                  4       ^ ,          P%                  4       R	8X  g   Q hVP#                  4       ^,          P%                  4       R
8X  g   Q hVP#                  4       ^,          P%                  4       R8X  g   Q hVP#                  4       ^,          P%                  4       R8X  g   Q hVP&                  P                  4       e   Q h\)        4       pVP!                  4        F"  pVP+                  VP-                  4       4       K$  	  \        V4      ^8X  g   Q hR# )   ABCDr   
2000-01-01ro   r   r   r#   rn   r  	A (right)z	B (right)r   r   Nr=   rT   )rD   rE   figureadd_subplotr	   r?   r@   rA   rB   r
   listr  r   r)   r  rW   r,   	get_textsrs  r  setaddr   )r0   ru   r3   rJ   r  colorsr  s   &      r5   test_secondary_legend TestTSPlot.test_secondary_legend  s~   jj!__S! II!!!$44W=$v,f5\2C@

 	S#J2.mmo3==?#q(((}}q!**,;;;}}q!**,;;;}}q!**,333}}q!**,333{{%%'///MMODJJt~~'( $ 6{ar8   c           
        \        \        P                  P                  ^4      P	                  R4      \        \        R4      \        R7      \        R^
RR7      R7      p\        P                  P                  4       pVP                  ^4      pVP                  RR.R	VR
7       VP                  4       p\        VP!                  4       4      ^8X  g   Q hVP#                  4       ^ ,          P%                  4       R8X  g   Q hVP#                  4       ^,          P%                  4       R8X  g   Q hVP#                  4       ^,          P%                  4       R8X  g   Q hVP#                  4       ^,          P%                  4       R8X  g   Q hR# )r:   r  r   r  ro   r   r  rn   r   F)r  
mark_rightr3   r   Nr  )r	   r?   r@   rA   rB   r
   r  r  r   rD   rE   r  r  r)   r  rW   r,   r  rs  r0   rJ   ru   r3   r  s   &    r5   test_secondary_legend_right&TestTSPlot.test_secondary_legend_right  s'   II!!!$44W=$v,f5\2C@

 jj!__S!
S#J5R@mmo3==?#q(((}}q!**,333}}q!**,333}}q!**,333}}q!**,333r8   c           
        \        \        P                  P                  ^4      P	                  R4      \        \        R4      \        R7      \        R^
RR7      R7      p\        P                  P                  4       w  r#VP                  RR.VR	7       VP                  4       pVP                  4       ^ ,          P                  4       R
8X  g   Q hVP                  4       ^,          P                  4       R8X  g   Q hR# )r:   r  r   r  ro   r   r  r  rn   )r  r  r3   r  Nr  r	   r?   r@   rA   rB   r
   r  r  r   rD   rE   rF   r)   r  r  rs  r  s   &    r5   test_secondary_legend_bar$TestTSPlot.test_secondary_legend_bar  s    II!!!$44W=$v,f5\2C@

 **%%'
U"5mmo}}q!**,;;;}}q!**,333r8   c           
        \        \        P                  P                  ^4      P	                  R4      \        \        R4      \        R7      \        R^
RR7      R7      p\        P                  P                  4       w  r#VP                  RR.R	VR
7       VP                  4       pVP                  4       ^ ,          P                  4       R8X  g   Q hVP                  4       ^,          P                  4       R8X  g   Q hR# )r:   r  r   r  ro   r   r  r  rn   F)r  r  r  r3   Nr  r  r  s   &    r5   test_secondary_legend_bar_right*TestTSPlot.test_secondary_legend_bar_right!  s    II!!!$44W=$v,f5\2C@

 **%%'
U%BGmmo}}q!**,333}}q!**,333r8   c           
     F   \        \        P                  P                  ^4      P	                  R4      \        \        R4      \        R7      \        R^
RR7      R7      p\        P                  P                  4       pVP                  ^4      p\        \        P                  P                  ^4      P	                  R4      \        \        R4      \        R7      \        R^
RR7      R7      pVP                  RR.VR	7      pVP                  4       p\        VP!                  4       4      ^8X  g   Q hVP"                  P                  4       e   Q h\%        4       pVP!                  4        F"  pVP'                  VP)                  4       4       K$  	  \        V4      ^8X  g   Q hR
# )r:   r  r   r  ro   r   r  r   r   r  Nr  )r	   r?   r@   rA   rB   r
   r  r  r   rD   rE   r  r  r)   r  rW   r,   r  r  r  r   )r0   rJ   ru   r3   r  r  r  s   &      r5   test_secondary_legend_multi_col*TestTSPlot.test_secondary_legend_multi_col-  s9   II!!!$44W=$v,f5\2C@

 jj!__S!II!!!$44W=$v,f5\2C@

 WW#sW3mmo3==?#q((({{%%'///MMODJJt~~'( $ 6{ar8   c                   \        R \        P                  ! ^(4      P                  R	4      ,          \	        \        R4      \        R7      \	        \        ^
4       Uu. uF  pRV 2NK
  	  up\        R7      R7      p\        P                  P                  4       pVP                  ^4      pVP                  RR.VR7      pVP                  4       p\        VP                  4       4      ^8X  g   Q hVP                   P                  4       e   Q h\#        4       pVP                  4        F"  pVP%                  VP'                  4       4       K$  	  \        V4      ^8X  g   Q hR# u upi )
皙?r  r   i-r  rn   ro   r  Nr  r	   r?   r   reshaper
   r  r  rC   rD   rE   r  r  r)   r  rW   r,   r  r  r  r   r0   rh   rJ   ru   r3   r  r  r  s   &       r5   test_secondary_legend_nonts&TestTSPlot.test_secondary_legend_nontsE     "))B-''00$v,f55959a2aS95VD

 jj!__S!WW#sW3mmo3==?#q((({{%%'///MMODJJt~~'( $ 6{a 6   E"c                   \        R \        P                  ! ^(4      P                  R	4      ,          \	        \        R4      \        R7      \	        \        ^
4       Uu. uF  pRV 2NK
  	  up\        R7      R7      p\        P                  P                  4       pVP                  ^4      pVP                  RR.VR7      pVP                  4       p\        VP                  4       4      ^8X  g   Q hVP                   P                  4       e   Q h\#        4       pVP                  4        F"  pVP%                  VP'                  4       4       K$  	  \        V4      ^8X  g   Q hR# u upi )
r  r  r   r  r  r   r   r  Nr  r  r  s   &       r5   %test_secondary_legend_nonts_multi_col0TestTSPlot.test_secondary_legend_nonts_multi_colY  r  r  zApi changed in 3.6.0c                   \        R ^RR7      p\        \        P                  P	                  ^4      P                  \        V4      ^34      V4      p\        P                  P                  4       w  r4VP                  VR7      pVP                  4       pVP                  4        F:  p\        VP                  4       4      ^ 8  g   K#  VP                  4       ^8X  d   K:  Q h	  R# )r   r?  r   rp   N)r   r	   r?   r@   rA   rB   rW   rD   rE   rF   r)   rM  get_ticklabelsrs  get_rotation)r0   r   rJ   rK   r3   rX  r  s   &      r5   test_format_date_axis TestTSPlot.test_format_date_axism  s    Rd;ryy,,Q/??S1NPST

##%WWW^((*D4==?#a'((*b000 +r8   c                ,   \        R ^
RR7      p\        \        \        V4      4      4      p\        P
                  P                  4       w  r4VP                  WRR7      p\        P                  ! \        V^ ,          P                  4       4      V4       R# )r
  r   r  r   )rL   N)r   r  rC   rW   rD   rE   rF   r)   r  r/  r   r-   )r0   rr   rs   rK   r3   r  s   &     r5   test_ax_plotTestTSPlot.test_ax_plotx  sj    \2C@s1v

##%C(
mE!H,>,>,@A1Er8   c           
        \        R ^^4      \        R^^4      .p\        P                  ! RRR4      p\        P                  ! RRR4      p\        P                  P                  4       w  rETP                  V Uu. uF  qfP                  4       NK  	  upTRV Uu. uF  qfP                  4       NK  	  upVR^R7      w  pp\        P                  ! V Uu. uF  qfP                  4       NK  	  up\        P                  R7      p	\        P                  ! VP                  4       R
,          V	4       \        P                  ! VP                  4       R
,          V	4       R	# u upi u upi u upi )  i  g      $@g      &@g      ?g      (@-)	linewidthr   Nr   )r   r?   r   rD   rE   rF   r)   	toordinalrg   r   r  r  r   )
r0   datesvalues1values2rK   r3   rr   line1line2exps
   &         r5   test_mpl_nopandasTestTSPlot.test_mpl_nopandas  s#   dB#T$2%67))D$,))D$,

##% GG$)*Eq[[]E*$)*Eq[[]E*  
	
 hhu5u!u5RZZH
##E$4$4$6t$<cB
##E$4$4$6t$<cB + + 6s   :EE"E'c                p   \        \        P                  ! ^\        P                  R7      \	        R^R7      R7      pVP
                  . R
O,          p\        P                  P                  4       w  r4VR,          P                  VR7       VR,          P                  VR7       VP                  4       w  rVV\        P                  P                  VP                  P                  4       RV4      8:  g   Q hV\        P                  P                  VP                  P!                  4       RV4      8  g   Q hR	# )r  r   r   r   r"   Nr   Nrp   r    Nr'   rT   r   rU   r  r>   r=   r  r  r  r  r   r!  r   r?   r   r   r   r   rD   rE   rF   r)   r6  r   DatetimeConverterconvertr#   r  r;  r0   r2   ts_irregularrK   r3   r  r  s   &      r5    test_irregular_ts_shared_ax_xlim+TestTSPlot.test_irregular_ts_shared_ax_xlim  s    IIb

+:lTV3W
 wwMN 

##%R$R$ kkmt--55l6H6H6L6L6NPRTVWWWW..66|7I7I7M7M7OQSUWXXXXr8   c                <   . ROp. ROp\        ^VR7      p\        ^VR7      p\        P                  P                  4       w  rVVP	                  VR7       VP                  4       w  rxVP	                  RVR7       VP                  4       w  rWy8  g   Q hW8  g   Q hR# )r'   r"   rp   Tr  N)r'   r:   rf   rT   )r   rU   r	  r  )r   rD   rE   rF   r)   r6  r0   index_1index_2r  r  rK   r3   left_beforeright_before
left_afterright_afters   &          r5   test_secondary_y_non_ts_xlim'TestTSPlot.test_secondary_y_non_ts_xlim  s    AW%AW%

##%
2$&KKM!
DR("$++-
((()))r8   c                d   \        R ^RR7      p\        R^RR7      p\        ^VR7      p\        ^VR7      p\        P                  P	                  4       w  rVVP                  VR7       VP                  4       w  rxVP                  RVR7       VP                  4       w  rWy8  g   Q hW8  g   Q hR# )	r  r   r  z
2000-01-05r"   rp   Tr  N)r   r   rD   rE   rF   r)   r6  r  s   &          r5    test_secondary_y_regular_ts_xlim+TestTSPlot.test_secondary_y_regular_ts_xlim  s    <E<EAW%AW%

##%
2$&KKM!
DR("$++-
((()))r8   c                h   \        R ^
RR7      p\        ^VR7      p\        P                  P	                  4       w  r4VP                  VR7       VP                  4       w  rVVP                  R4      P                  4       P                  RVR7       VP                  4       w  rxWW8X  g   Q hWh8X  g   Q hR# )	r  r  r   r"   rp   r   Tr  N)	r   r   rD   rE   rF   r)   r6  resamplemean)	r0   r   r2   rK   r3   r  r  r  r  s	   &        r5   #test_secondary_y_mixed_freq_ts_xlim.TestTSPlot.test_secondary_y_mixed_freq_ts_xlim  s    r>AS!

##%
2$&KKM!
C$$"$="$++-
 (((***r8   c                   \        \        P                  ! ^\        P                  R7      \	        R^R7      R7      pVP
                  . RO,          p\        P                  P                  4       w  r4VR,          P                  VR7       VR,          P                  RVR	7       VR,          P                  VR7       VP                  4       w  rVV\        P                  P                  VP                  P                  4       R
V4      8:  g   Q hV\        P                  P                  VP                  P!                  4       R
V4      8  g   Q hR# )r  r   r   r   r"   r  rp   r   Tr  r  Nr  r  r  s   &      r5   "test_secondary_y_irregular_ts_xlim-TestTSPlot.test_secondary_y_irregular_ts_xlim  s   IIb

+:lTV3W
 wwMN

##%R$R$26R$kkmt--55l6H6H6L6L6NPRTVWWWW..66|7I7I7M7M7OQSUWXXXXr8   c                    \        R ^^4      \        R ^^4      .p\        P                  P                  4       w  r#VP	                  V4       \        R ^^^4      \        R ^^^4      .pVP	                  V4       R# )i  N)r   rD   rE   rF   r)   r   )r0   rV   rK   r3   s   &   r5   test_plot_outofbounds_datetime)TestTSPlot.test_plot_outofbounds_datetime  sh    tQ"Dq!$45

##%
4Ar*HT1a,DE
r8   c                R   \         P                  ! ^
4       Uu. uF	  pRVR 2NK  	  pp\        R^
RR7      p\        \         P                  P                  ^4      P                  \        V4      ^34      V4      p\        P                  P                  4       w  rVVP                  ^VR7       \        P                  P                  4        VP                  4       pV Uu. uF  qP                  4       NK  	  p	p\        V	4      \        V4      8X  g   Q hW8X  g   Q hR# u upi u upi )r=   z00:00:00.0000000z0>2d0r  r   r;   N)r?   r   r   r	   r@   rA   rB   rW   rD   rE   rF   r)   drawrG   rs  )
r0   rh   expected_labelsr   rJ   rK   r3   ry  rr   result_labelss
   &         r5   "test_format_timedelta_ticks_narrow-TestTSPlot.test_format_timedelta_ticks_narrow  s    @B		"N1-aX6Nc2D9ryy,,Q/??S1NPST

##%
r"

##%/56v!v6=!S%9999/// O 7s   D D$c                    . ROp\        R^
RVR7      p\        \        P                  P	                  ^4      P                  \        V4      ^34      V4      p\        P                  P                  4       w  rVVP                  ^VR7      p\        P                  P                  4        VP                  4       pV Uu. uF  qP                  4       NK  	  p	p\        V	4      \        V4      8X  g   Q hW8X  g   Q hR# u upi )00:00:00r  1 D)r   r    r  r;   N)	r  z1 days 03:46:40z2 days 07:33:20z3 days 11:20:00z4 days 15:06:40z5 days 18:53:20z6 days 22:40:00z8 days 02:26:40z9 days 06:13:20)r   r	   r?   r@   rA   rB   rW   rD   rE   rF   r)   r  rG   rs  )
r0   r  r  r   rJ   rK   r3   ry  rr   r  s
   &&        r5    test_format_timedelta_ticks_wide+TestTSPlot.test_format_timedelta_ticks_wide  s    

 c2EEryy,,Q/??S1NPST

##%WWaBW'

##%/56v!v6=!S%9999/// 7s   <C;c                    \        \        ^4      \        R^R7      4      p\        P                  P                  4       w  r#\        VP                  VR7       R# )r   1dayr   rp   N)r   rC   r   rD   rE   rF   r(   r)   )r0   r   rK   r3   s   &   r5   test_timedelta_plotTestTSPlot.test_timedelta_plot  s;    58_VQ?@

##%!&&R(r8   c                   \        R ^
RR7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        P                  P                  4       w  r4\        VP                  VR7       R# )1 day 2 hr 30 min 10 sr  r   rp   Nr   r   r?   r@   rA   rB   rW   rD   rE   rF   r(   r)   r0   r#   r   rK   r3   s   &    r5   test_timedelta_long_period%TestTSPlot.test_timedelta_long_period  s]     8"5Q299((+;;CJGO

##%!&&R(r8   c                   \        R ^
RR7      p\        \        P                  P	                  ^4      P                  \        V4      4      V4      p\        P                  P                  4       w  r4\        VP                  VR7       R# )r  z1 nsr   rp   Nr  r  s   &    r5   test_timedelta_short_period&TestTSPlot.test_timedelta_short_period$  s]     8"6R299((+;;CJGO

##%!&&R(r8   c                   \        R ^
RR7      pTp\        P                  ! ^ ^R4      p\        P                  ! ^ ^R4      RRR1,          p\        P                  P                  4       w  rVVP                  W".W4.R7       R# )r   r   r   g?N)weightsr&   )r   r?   r   rD   rE   rF   hist)r0   r   rr   w1w2rK   r3   s   &      r5   	test_histTestTSPlot.test_hist+  sj    Rc:YYq!S!YYq!S!$B$'

##%
)r8   c           
     ~   \        . R
O\        R^^4      \        R^^4      \        R^^4      .R7      p\        . R
O\        R^^4      \        R^^4      \        R^^4      .R7      p\        P                  P	                  4       w  r4VP                  VR7       VP                  VR7       VP                  VR7       R	# )r'   rr  r   i  r"   i  i  r  rp   Nre   )r   r   rD   rE   rF   r)   )r0   r  r  rK   r3   s   &    r5   test_overlapping_datetime$TestTSPlot.test_overlapping_datetime4  s    r2&r2&r2&
 r2&r2&r2&
 

##%
2
2
2r8   z1GH9053 matplotlib does not use ax.xaxis.converterc                   \        \        P                  P                  ^4      P	                  ^
4      \        R^
R7      R7      pVP                  4       p\        P                  ! \        4      ;_uu_ 4        VP                  VP                  VP                  RR7       RRR4       VP                  w  r4\        P                  ! VP                  4       VP                  4       4       R#   + '       g   i     LS; i)r:   z
1970-01-02r   r"   r  )r   N)r   r?   r@   rA   rB   r   r)   r  r  DeprecationWarningr#   rV   r  r  r   )r0   r   r3   l1l2s   &    r5   test_add_matplotlib_datetime64)TestTSPlot.test_add_matplotlib_datetime64N  s    
 II!!!$44R8\26
 VVX''(:;;GGAGGQXXSG1 < 
##BMMOR]]_E	 <;s   7)C++C;	c                   \        \        P                  P                  ^4      P                  R
4      RR.R7      p\	        R^
RR7      VR&   \
        P                  P                  4       w  r#VP                  RRVR7       \
        P                  P                  4        VP                  4       ^ ,          pRpVP                  4       V8X  g   Q hR	# )r:   rr   rs   r  z
2018-01-01r   r   r   )rr   rs   r  N)r=   r:   )r	   r?   r@   rA   r   rD   rE   rF   scatterr  rG   rs  )r0   rJ   rK   r3   rL   r;  s   &     r5   "test_matplotlib_scatter_datetime64-TestTSPlot.test_matplotlib_scatter_datetime64^  s    ryy,,Q/66w?#sTbsC6


##%


Vs
,

""$Q'~~8+++r8   c                    \        . RO4      p\        RVR. RO/4      pVP                  RRR7      p\        V^ R7       R# )
2020-05-01rr   rs   rr   rs   xrotN)r  
2020-05-02z
2020-05-03re   r   r	   r)   r   r0   rr   rJ   r  s   &   r5   test_check_xticks_rot TestTSPlot.test_check_xticks_roti  s>     BCQY/0www$4a(r8   c                    \        . RO4      p\        RVR. RO/4      pVP                  RRR7      p\        V^R7       R# )r  rr   rs   r  r   Nr  r"  z
2020-05-04re   r#  r$  s   &   r5   test_check_xticks_rot_irregular*TestTSPlot.test_check_xticks_rot_irregularq  s<    BCQY/0www$4b)r8   c                    \        . RO4      p\        RVR. R	O/4      pVP                  R4      P                  RRR7      p\	        V^R7       VP                  R4      P                  RRR7      p\	        V^ R7       R# )
r  rr   rs   T)rs   	use_indexr   FNr(  re   )r   r	   	set_indexr)   r   r$  s   &   r5   test_check_xticks_rot_use_idx(TestTSPlot.test_check_xticks_rot_use_idxx  sp    BCQY/0||C %%t%<4b)||C %%u%=4a(r8   c                    \        . RO4      p\        RVR. R	O/4      pVP                  RRRRR7      p\        V^R7       VP                  RRRRR7      p\        V^ R7       R# )
r  rr   rs   T)rr   rs   rF   r+  r   FNr(  re   r#  r$  s   &   r5   test_check_xticks_rot_sharex'TestTSPlot.test_check_xticks_rot_sharex  s`    BCQY/0wwd4w@4b)wwd5wA4a(r8   rY   UTC)r   r!   z1 dayr   r   c                   V! \        ^4      VR7      p\        P                  ^^4      w  rVVP                  VR7       VP	                  RR7      ;_uu_ 4       p\
        P                  ! WW4       RRR4       R#   + '       g   i     R# ; i)r   r"   rp   wb)modeN)rC   pltrF   r)   openpickledump)r0   	temp_fileframe_or_seriesrY   rJ   ru   r3   paths   &&&&    r5   test_pickle_figTestTSPlot.test_pickle_fig  sa     U1XS1,,q!$
2^^^&&$KK" '&&&s   A99B
	 )r   r  r   r   rA  r   r`  r   )	r   r  r   r   rA  r?  zQE-DECrm   1B30Min)1s3s5min7h4D8W11M3Y)r   r  r   r   rA  r?  r@  rm   )r  area)rJ  r  )r'   rf   rU   r     )__name__
__module____qualname____firstlineno__r{   markfilterwarningsr6   rM   r[   r`   rj   rv   r   parametrizer   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,  r0  r   r?   r   r   r	   r<  rG  r[  rd  ri  rm  rx  slowr  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.  r4  xfailr8  r=  rB  rE  rN  rY  r\  ra  rd  rg  rj  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.  r1  r   r   r
   r   r  rC   r>  __static_attributes____classdictcell__)rh   __classdict__s   0@r5   r   r   4   s    [[ 56
< 7
<-$"#*( [[V%OP+ Q+ [[L++6 [[WtZb-Q&RS1 T1 [[VdD\2+ 3+W [[
,	-5S/TUD	D [[V%OP4 Q4
 [[E:: [[L>>
 [[V%RS2 T2 [[E)) [[ VW[[L	) X	) [[L$$'$$
$
G
78
4"+G [[B [[		"BJJ/ r: 		"BJJ7(rB 		"BJJ7(rB 	
	
,5-25.E0,, [[
 

"$"(""".5>	,5>,CCCC)6H),H 	BH*	D [[ VW XRR [[78
R 9
R	4'	H?, [[^.>@P-QR5P S5Pn [[^.>@P-QR3Q S3QjCC#* 8+ Z! F= 24 
4
4 0 ( ( [[451 61FC.Y"* * +Y$000)))*4 [[QRF SF	,)*)) [[|Q/|Q59GQS9qs;->?->4a#->?vN!H	

#
#	 @s   Ur   c                 n   \         P                  4       pVP                  4        VP                  ^4      pVP	                  R\         P                  4       4      p\        VRR4      pV ! V/ VB p	V	f   Q hVP	                  R\         P                  4       4      pVeP   VP                  P                  p
\        V
\        4      '       d   V
P                  p
Vf   VP                  V
8X  g   Q hVe#   Vf   \        VP                  RR7      V8X  g   Q hVP                  ^4      pWdR&   V ! V/ VB p	V	f   Q hR# )r  r3   r    NT)	is_period)r7  gcfclfr  popgcagetattrr#   r    r  r   r   r   )fr    seriesargskwargsru   r3   orig_axorig_axfreqr  dfreqs   &&&*,      r5   r(   r(     s   
'')CGGI		Bjjswwy)G'640K
T
V
C??	D#'')	$B!!eZ((OOE77e###K/D1T999		B4L
T
V
C??r8   )NN)1__doc__r   r   r   r   r9  numpyr?   r{   pandas._libs.tslibsr   r   pandas.core.dtypes.dtypesr   pandasr	   r
   r   r   r   r   r   pandas._testing_testingr  pandas.core.indexes.datetimesr   r   r   pandas.core.indexes.periodr   r   r   pandas.core.indexes.timedeltasr   pandas.tests.plotting.commonr   pandas.tseries.offsetsr   r  rD   r7  %pandas.plotting._matplotlib.converterplotting_matplotlib	converterr   r   r(   r@  r8   r5   <module>rv     s    @    
 2    
 
 ; ; .,'-. 4 4i# i#X3r8   