+
    ii6                        ^ RI t ^ RIt^ RIt^ RIHt ^ RIt^ RIt^ RI	H
t
 ^ RIHt R tR tR tR tR	 tR
 tR tR tR tR tR tR tR tR tR tR tR tR tR tR t R t!R t"R t#R t$R t%R t&R t'R  t(R! t)R" t*R# )#    N)Path)subprocess_run_for_testing)pyplotc                    \         P                  ! R RR7       \        \        P                  4      P
                  ^,          R,          pVP                  4       '       g   \         P                  ! R4       \        \        P                  4      P                  4       pV R,          pVP                  VR4       \        \        P                  \        V4      \        V4      .RR7       VP                  R4      pW$8w  di   R	P                  \         P"                  ! VP%                  R	4      VP%                  R	4      R
R^ RR7      4      p\         P&                  ! RV,          4       R# R# )blackz24.1)
minversionztools/boilerplate.pyzboilerplate.py not foundz	pyplot.pyzutf-8T)check
zfound pyplot.pyzexpected pyplot.py )fromfiletofilenlinetermzpyplot.py is not up-to-date. Please run 'python tools/boilerplate.py' to update pyplot.py. This needs to be done from an environment where your current working copy is installed (e.g. 'pip install -e'd). Here is a diff of unexpected differences:
%sN)pytestimportorskipr   mpl__file__parentsexistsskipplt	read_text
write_textr   sys
executablestrjoindifflibunified_diffsplitfail)tmp_path
gen_scriptorig_contentsplt_filenew_contentsdiff_msgs   &     |/Users/tonyclaw/.openclaw/workspace/skills/math-calculator/venv/lib/python3.14/site-packages/matplotlib/tests/test_pyplot.pytest_pyplot_up_to_dater)      s   
F3cll#++A.1GGJ./&002M+%Hw/	Z#h-8 %%g.L$99  ##D)<+=+=d+C*+b	"# 	< ?G	G	
 %    c                    \         P                  P                  \         P                  R R4      \         P                  P	                  \         P                  R4      R
R l4       4       p\
        P                  ! V4      R
R l4       pV! R4       V! RR7       V! RRR7       V! RRR7       V '       d   Q h\        P                  ! \         P                  4      ;_uu_ 4        V! RR	7       RRR4       \        P                  ! \         P                  4      ;_uu_ 4        V! RR4       RRR4       R#   + '       g   i     LP; i  + '       g   i     R# ; i)oldnewkwoNc                     R # N r-   r.   s   &&r(   func1test_copy_docstring_and_deprecators.<locals>.func.   s     	r*   c                     R # r0   r1   r2   s   &&r(   wrapper_func9test_copy_docstring_and_deprecators.<locals>.wrapper_func3   s    r*   )r-   )r.   r2   )r,   r0   )
r   _apirename_parameter__version__make_keyword_onlyr   _copy_docstring_and_deprecatorsr   warnsMatplotlibDeprecationWarning)recwarnr3   r6   s   &  r(   #test_copy_docstring_and_deprecatorsr@   -   s    XXsu=XX7 8 > 	((. / T4 Tt$;	c66	7	7 
8	c66	7	7T4  
8	7 
8	7	7	7	7s   "
D4 
E4E	E	c                     \         P                  ! 4       w  r\         P                  ! R 4       VP                  4       '       d   Q h\         P                  ! R4       VP                  4       '       g   Q h\         P                  ! 4        VP                  4       '       d   Q h\         P                  ! 4        VP                  4       '       g   Q hR# )FTN)r   subplotsboxget_frame_on)figaxs     r(   test_pyplot_boxrG   B   s    llnGCGGEN    GGDM??GGI    GGI??r*   c                  <    \         P                  ! . RO. RO4       R# )   N)rI         )r   	stackplotr1   r*   r(   test_stackplot_smokerM   N   s    MM)Y'r*   c                  \   \         P                  ! \        4      ;_uu_ 4        \        P                  ! ^R7       RRR4       \         P                  ! \        4      ;_uu_ 4        \        P                  ! ^R7       RRR4       R#   + '       g   i     LT; i  + '       g   i     R# ; i)rI   )nrowsN)ncols)r   raises	TypeErrorr   subplotr1   r*   r(   test_nrows_errorrT   S   sX    	y	!	!! 
"	y	!	!! 
"	! 
"	!	!	!	!s   B%BB	B+	c                     \         P                  ! 4        \        P                  ! 4       '       g   Q h\         P                  ! 4       ;_uu_ 4        \        P                  ! 4       '       d   Q h R R R 4       \        P                  ! 4       '       g   Q h\         P                  ! 4        \        P                  ! 4       '       d   Q h\         P                  ! 4       ;_uu_ 4        \        P                  ! 4       '       d   Q h R R R 4       \        P                  ! 4       '       d   Q hR #   + '       g   i     L; i  + '       g   i     LB; ir0   )r   ionr   is_interactiveioffr1   r*   r(   	test_ioffrY   Z   s    GGI	%%''''' 
HHJ!!####	%%''''' 
!!##### 
 
   D)#D<)D9	<E	c                     \         P                  ! 4        \        P                  ! 4       '       d   Q h\         P                  ! 4       ;_uu_ 4        \        P                  ! 4       '       g   Q h R R R 4       \        P                  ! 4       '       d   Q h\         P                  ! 4        \        P                  ! 4       '       g   Q h\         P                  ! 4       ;_uu_ 4        \        P                  ! 4       '       g   Q h R R R 4       \        P                  ! 4       '       g   Q hR #   + '       g   i     L; i  + '       g   i     LB; ir0   )r   rX   r   rW   rV   r1   r*   r(   test_ionr\   h   s    HHJ!!####	!!#### 
!!####GGI	!!#### 
 
 
rZ   c            	      l   \         P                  ! 4        \         P                  ! 4       ;_uu_ 4        \        P                  ! 4       '       d   Q h\         P                  ! 4       ;_uu_ 4        \        P                  ! 4       '       g   Q h R R R 4       \        P                  ! 4       '       d   Q h R R R 4       \        P                  ! 4       '       g   Q h\         P                  ! 4       ;_uu_ 4        \         P                  ! 4       ;_uu_ 4        \        P                  ! 4       '       d   Q h R R R 4       R R R 4       \        P                  ! 4       '       g   Q h\         P                  ! 4       ;_uu_ 4        \         P                  ! 4        R R R 4       \        P                  ! 4       '       g   Q h\         P                  ! 4        \         P                  ! 4       ;_uu_ 4        \        P                  ! 4       '       g   Q h\         P                  ! 4       ;_uu_ 4        \        P                  ! 4       '       d   Q h R R R 4       \        P                  ! 4       '       g   Q h R R R 4       \        P                  ! 4       '       d   Q h\         P                  ! 4       ;_uu_ 4        \         P                  ! 4       ;_uu_ 4        \        P                  ! 4       '       g   Q h R R R 4       R R R 4       \        P                  ! 4       '       d   Q h\         P                  ! 4       ;_uu_ 4        \         P                  ! 4        R R R 4       \        P                  ! 4       '       d   Q hR #   + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELn; i  + '       g   i     ELz; i  + '       g   i     EL6; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL(; i  + '       g   i     L; ir0   )r   rV   rX   r   rW   r1   r*   r(   test_nested_ion_ioffr^   v   sm   GGI 
%%''''WWYY%%'''' %%'''''	 

  
XXZZ))+++++  
 	
 
 HHJ 
!!####XXZZ))+++++ !!####	 

 !!#### 
WWYY%%''''  
 !!####		 
!!#####E YY 
 ZZ 

 
 ZZ 
 YY 

 
s   ;N.M/	"N0N5N+N	2N+<N?);O'$O	"O'&O'+P	O;	(P2P#/N :	NN	N("	N++N<	?O	O$	O''O8	;P	PP 	#P3	c                       \         P                  ! R 4       R#   \         d   p \        T 4      R8X  g   Q h Rp ? R# Rp ? ii ; i)g?zQclose() argument must be a Figure, an int, a string, or None, not <class 'float'>N)r   closerR   r   )es    r(   
test_closerb      sD    B		# B1v B B 	B BBs    A=Ac                  :   \         P                  ! ^y4      p V \         P                  ! 4       J g   Q h\         P                  ! ^z4      pV\         P                  ! 4       J g   Q h\         P                  ! ^y4      pV \         P                  ! 4       J g   Q hWJ g   Q hR# )y   N)r   rS   gcaax1ax2ax3s      r(   test_subplot_reuserj      sr    
++c
C#'')
++c
C#'')
++c
C#'')::r*   c                  ~   \         P                  ! 4        \         P                  ! 4       p \         P                  ! 4       pV f   Q hWJg   Q h\         P                  ! 4        \         P                  ! 4        \         P                  ! RR7      p \         P                  ! RR7      pV f   Q hWJg   Q h\         P                  ! 4        \         P                  ! 4        \         P                  ! RR7      p \         P                  ! 4       pV f   Q hVP                  R8X  g   Q hWJg   Q h\         P                  ! 4        R # )Npolar
projectionrectilinear)r   figureaxesr`   namerF   rg   s     r(   test_axes_kwargsrt      s    JJL	B
((*C>>==IIKJJL	W	%B
((g
&C>>==IIKJJL	W	%B
((*C>>88}$$$==IIKr*   c                  J   \         P                  ! 4       p \         P                  ! ^^^4      p\         P                  ! ^^^4      p\         P                  ! ^^^4      p\         P                  ! ^^^RR7      p\         P                  ! ^^^RR7      pVf   Q hW!J g   Q hW1Jg   Q hWAJg   Q hWEJ g   Q hWP                  9   g   Q hW0P                  9   g   Q hW@P                  9   g   Q hVP                  R8X  g   Q hVP                  R8X  g   Q hVP                  R8X  g   Q hR# )rI   rl   rm   Nro   )r   rp   rS   rq   rr   )rE   rF   rg   rh   ri   ax4s         r(   test_subplot_replace_projectionrw      s     **,C	Q1	B
++aA
C
++aA
C
++aA'
2C
++aA'
2C>>99====::>>((??((??77m###88}$$$88wr*   c                     \         P                  ! R ^ R7      p \         P                  ! R ^ R7      pWJ g   Q hV P                  4        \         P                  ! R ^R7      pWJg   Q hV \         P                  ! 4       P                  9  g   Q hR# )rl   )rn   theta_offsetN)r   rS   removegcfrq   rf   s      r(   test_subplot_kwarg_collisionr|      sg    
++q
9C
++q
9C::JJL
++q
9C>>cgginn$$$r*   c                      \         P                  ! 4        \         P                  ! 4       p \         P                  ! 4       pV f   Q hWJ g   Q h\         P                  ! 4        R # r0   )r   rp   re   r`   rs   s     r(   test_gcar~      s>    JJL	B
'')C>>99IIKr*   c                     \         P                  ! ^o4      p V \         P                  ! 4       J g   Q hV \         P                  ! ^o4      J g   Q hV P                  4        \         P                  ! ^oRR7      pV\         P                  ! 4       J g   Q hV \         P                  ! 4       P
                  9  g   Q hV\         P                  ! ^o4      J g   Q hVP                  4        \         P                  ! ^oRR7      pV\         P                  ! 4       J g   Q hW!Jg   Q hV\         P                  ! 4       P
                  9  g   Q hR# )o   rl   rm   ro   N)r   rS   re   rz   r{   rq   rf   s      r(   test_subplot_projection_reuser      s    
++c
C#'')#++c""""JJL
++cg
.C#'')cgginn$$$#++c""""JJL ++cm
4C#'')>>cgginn$$$r*   c                  h   \         P                  ! ^oRR7      p \         P                  ! ^oRR7      p\         P                  ! ^oRRR7      pWJ g   Q hWJ g   Q h\        P                  ! \        RR7      ;_uu_ 4        \         P                  ! ^oRRR7      pR	R	R	4       R	#   + '       g   i     R	# ; i)
r   rl   rm   T)rl   )rl   rn   zpolar=True, yet projection='3d'match3dN)r   rS   r   rQ   
ValueErrorrf   s      r(    test_subplot_polar_normalizationr     s    
++cg
.C
++c
&C
++c'
:C::::	z>
@ 
@kk#Td;
@ 
@ 
@ 
@s   <B  B1	c                     \        4       p \        P                  ! 4       pV P                  V4       RpV Fi  pVP	                  4        \        P                  ! VR7      pV\        P                  ! 4       J g   Q hVP
                  V8X  g   Q hV P                  V4       Kk  	  \        V 4      ^\        V4      ,           8X  g   Q hR# )aitoffrm   N)r   hammerlambert	mollweiderl   ro   r   )setr   rS   addrz   rr   len)created_axesrF   projectionsprojs       r(   test_subplot_change_projectionr     s    5L	BR1K
		[[D)S[[]"""ww$  |C$4 4444r*   c                  V   \         P                  ! R RR4      w  p \        V \        P                  P
                  4      '       g   Q h\         P                  ! RRR4      w  p\        V\        P                  P
                  4      '       g   Q hV P                  VP                  J g   Q hR# )g        g      ?rogQ?      ?boN)r   rl   
isinstancer   linesLine2Drq   )ln1ln2s     r(   test_polar_second_callr   .  sz    99RT"DCc399++,,,,99T2t$DCc399++,,,,88sxxr*   c                     \         P                  ! . RO4      p \         P                  ! . ROR7      p\        P                  P	                  VP
                  P                  4       V P
                  P                  4       4       \         P                  ! . RO4      p \         P                  ! . RO. ROR7      p\        P                  P	                  VP
                  P                  4       V P
                  P                  4       4       R# )皙?)positionN)r   r   r   r   )皙?r   皙?r   )r   rq   nptestingassert_allclosebbox
get_points)axrefaxtests     r(   test_fallback_positionr   8  s    HH)*EXX34FJJv{{557$zz4468 HH)*EXX*5IJFJJv{{557$zz4468r*   c                  6   \         P                  ! 4       p V P                  ^4      p\         P                  ! 4        \         P                  ! 4       V 8w  g   Q h\         P                  ! V^,          4      p\         P                  ! 4       V 8X  g   Q hW 8X  g   Q hR# )rJ   N)r   rp   
subfiguresr{   )fig1subfigscurrents      r(   %test_set_current_figure_via_subfigurer   F  sh    ::<Dooa GJJL779jj$G779??r*   c                  V   \         P                  ! 4       p V P                  ^4      pV^ ,          P                  ^RR7      pV^,          P                  ^RR7       \         P                  ! 4       V8w  g   Q h\         P
                  ! V4       \         P                  ! 4       V8X  g   Q hR# )rJ   T)squeezeN)r   rp   r   rB   re   sca)rE   r   rF   s      r(   "test_set_current_axes_on_subfigurer   R  sz    
**,CnnQG			Q		-BAJ4(779??GGBK779??r*   c                      \         P                  ! R 4      p \        P                  P	                  V P
                  RRRP                  R4      ^<R7       R# )IPythonz--pylabz-c;)timeoutN)zimport matplotlib.pyplot as pltz<assert plt._REPL_DISPLAYHOOK == plt._ReplDisplayHook.IPYTHON)r   r   r   r   subprocess_run_helperstart_ipythonr   )r   s    r(   test_pylab_integrationr   ^  sN    !!),GKK%% 
 	  & 	r*   c                    \        \        4      P                  R,          p V P                  4       '       g   \        P
                  ! R4       R pV P                  4       P                  R4      p\        V! V4      4      p\        \        P                  ! 4       4      pVP                  V4      pV'       d   \        RV: 24      hVP                  V4      pV'       d   \        RV: 24      hR# )z6Test that pyplot_summary lists all the plot functions.z#../../../doc/api/pyplot_summary.rstz#Documentation sources not availablec                ,   . pRpV  F  pV'       g   VP                  R4      '       d   RpK&  K(  V'       d   VP                  R4      '       d   KI  V^ ,          P                  4       '       g   RpKj  VP                  VP                  4       4       K  	  V# )a  
Return a list of all the functions that are mentioned in the
autosummary blocks contained in *lines*.

An autosummary block looks like this::

    .. autosummary::
       :toctree: _as_gen
       :template: autosummary.rst
       :nosignatures:

       plot
       plot_date

Fz.. autosummary::Tz   :)
startswithisspaceappendstrip)r   	functionsin_autosummarylines   &   r(   extract_documented_functions=test_doc_pyplot_summary.<locals>.extract_documented_functionsr  s      	D!??#566%)N 7 tv66Aw((%*N  .  r*   r
   zsThe following pyplot functions are not listed in the documentation. Please add them to doc/api/pyplot_summary.rst: zThe following functions are listed in the pyplot documentation, but they do not exist in pyplot. Please remove them from doc/api/pyplot_summary.rst: N)r   r   parentr   r   r   r   r    r   r   _get_pyplot_commands
differenceAssertionError)pyplot_docsr   r   doc_functionsplot_commandsmissingextras          r(   test_doc_pyplot_summaryr   l  s    x.''*OOK9:B !!#))$/E4U;<M0023M&&}5GMk 	 $$]3ECCH)MN 	N r*   c                     \         P                  ! 4        \         P                  ! \        P                  ! ^^
4      4       \         P
                  ! RR7      w  r\        P                  ! V\        P                  ! . \        P                  R7      8H  4      '       g   Q hV. 8X  g   Q h\         P                  ! RR.RR.RR7       \         P                  ! 4       pVP                  RR7      p VP                  RR7      p\        P                  ! V \        P                  ! RR.4      8H  4      '       g   Q hV Uu. uF  q3P                  4       NK  	  upRR.8X  g   Q hR	# u upi )
rI   T)minor)dtypeg      @g      @ab)tickslabelsr   N)r   rp   plotr   arangexticksallarrayfloat64yticksre   
get_yticksget_yticklabelsget_text)tick_postick_labelsrF   ls       r(   test_minor_ticksr     s    JJLHHRYYq"JJT2H66+"BJJ!??@@@@"JJc3Zc
$?	B}}4}(H$$4$0K66(bhhSz223333"-.+QJJL+.3*<<<.s   9Ec                     \         P                  ! R 4       \         P                  ! 4       p \         P                  ! 4       p \        \         P                  ! 4       4      ^8X  g   Q h\         P                  ! R 4       \        \         P                  ! 4       4      ^8X  g   Q h\         P                  ! R4       \        \         P                  ! 4       4      ^8X  g   Q hR# )aggsvgN)r   switch_backendrp   r   get_fignums)rE   s    r(   test_switch_backend_no_closer     s    u
**,C
**,Cs !Q&&&us !Q&&&us !Q&&&r*   c                     R V n         R# )TN)_test_was_here)rp   s   &r(   figure_hook_exampler     s
     Fr*   c                      R R./p \         P                  ! V 4      ;_uu_ 4        \        P                  ! 4       pRRR4       XP                  '       g   Q hR#   + '       g   i     L&; i)zfigure.hooksz0matplotlib.tests.test_pyplot:figure_hook_exampleN)r   
rc_contextr   rp   r   )test_rcrE   s     r(   test_figure_hookr     sR     	KLG 
	 	 jjl 
!  
!	 s   AA(	c            	      8   \         P                  ! ^RR7      p \        P                  ! \        RR7      ;_uu_ 4        \         P                  ! ^\
        P                  ! ^^.4      R7      pRRR4       \        P                  ! \        RR7      ;_uu_ 4        \         P                  ! V \
        P                  ! ^^.4      R7       RRR4       V XJ g   Q h\         P                  ! ^4      pWJ g   Q hR#   + '       g   i     L; i  + '       g   i     LJ; i)rI   )figsizez)Ignoring specified arguments in this callr   N)rI   rJ   )r   rp   r   r=   UserWarningr   r   )rE   fig2fig3s      r(   test_multiple_same_figure_callsr     s    
**Q
'C	k)T	U	Uzz!RXXq!f%56 
V	k)T	U	U

3!Q 01 
V$;;::a=D;; 
V	U	U	Us   /C6/D	6D		D	c                      \         P                  ! 4       p \        P                  ! \        R R7      ;_uu_ 4        \         P                  ! R4      pRRR4       R#   + '       g   i     R# ; i)zcloses all existing figuresr   r   N)r   rp   r   r=   r   )r   r   s     r(   test_close_all_warningr     s?    ::<D 
k)F	G	Gzz%  
H	G	G	Gs   AA,	c                      \         P                  ! 4       p ^ ^.^^..p\         P                  ! WP                  R7       R# )r   )fignumN)r   rp   matshownumber)rE   arrs     r(   test_matshowr     s1    
**,Cq6Aq6
C KKJJ'r*   )+r   numpyr   r   pathlibr   r   
matplotlibr   matplotlib.testingr   r   r   r)   r@   rG   rM   rT   rY   r\   r^   rb   rj   rt   rw   r|   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r1   r*   r(   <module>r     s      
    9 $
>!*	(
$ )$XB20%%2	<5  8		5Np='!!(r*   