+
     ]ii6  c                   s   ^ 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                 s   \         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# )Zblackz24.1)Z
minversionztools/boilerplate.pyzboilerplate.py not foundz	pyplot.pyzutf-8T)Zcheck
zfound pyplot.pyzexpected pyplot.pyZ )ZfromfileZtofileZnZ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__Zparentsexistsskipplt	read_textZ
write_textr   sysZ
executableZstrjoindifflibZunified_diffsplitZfail)Ztmp_pathZ
gen_scriptZorig_contentsZplt_fileZnew_contentsZdiff_msgs   &     C/usr/lib64/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                 s   \         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       \        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      &&r   funcZ1test_copy_docstring_and_deprecators.<locals>.func.   s     	r   c                 r   r   r   r   r   r   wrapper_funcZ9test_copy_docstring_and_deprecators.<locals>.wrapper_func3   s    r   )r   )r   r   )r   r   )
r   Z_apiZrename_parameterZ__version__Zmake_keyword_onlyr   Z_copy_docstring_and_deprecatorsr   warnsZMatplotlibDeprecationWarning)Zrecwarnr   r   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   
D*
D=*D:	=E	c                  s    \         P                  ! 4       w  r\         P                  ! R 4       \         P                  ! R4       \         P                  ! 4        \         P                  ! 4        R# )FTN)r   subplotsZbox)figax     r   test_pyplot_boxr$   B   s7    llnGCGGENGGDMGGIGGIr   c                  s<    \         P                  ! . RO. RO4       R# )   N)r%      i   )r   Z	stackplotr   r   r   test_stackplot_smoker'   N   s    MM)Y'r   c                  s\   \         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)r%   )ZnrowsN)Zncols)r   raises	TypeErrorr   subplotr   r   r   test_nrows_errorr+   S   sX    	y	!	!! 
"	y	!	!! 
"	! 
"	!	!	!	!s   B%BB	B+	c                  @   \         P                  ! 4        \         P                  ! 4       ;_uu_ 4        R R R 4       \         P                  ! 4        \         P                  ! 4       ;_uu_ 4        R R R 4       R #   + '       g   i     LM; i  + '       g   i     R # ; ir   r   ionioffr   r   r   	test_ioffr0   Z   sB    GGI	 HHJ	 
 
   A9.B9B		B	c                  r,   r   )r   r/   r.   r   r   r   test_ionr2   h   sB    HHJ	 GGI	 
 
r1   c            	      s2   \         P                  ! 4        \         P                  ! 4       ;_uu_ 4        \         P                  ! 4       ;_uu_ 4        R R R 4       R R R 4       \         P                  ! 4       ;_uu_ 4        \         P                  ! 4       ;_uu_ 4        R R R 4       R R R 4       \         P                  ! 4       ;_uu_ 4        \         P                  ! 4        R R R 4       \         P                  ! 4        \         P                  ! 4       ;_uu_ 4        \         P                  ! 4       ;_uu_ 4        R R R 4       R R R 4       \         P                  ! 4       ;_uu_ 4        \         P                  ! 4       ;_uu_ 4        R R R 4       R R R 4       \         P                  ! 4       ;_uu_ 4        \         P                  ! 4        R R R 4       R #   + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELf; i  + '       g   i     ELr; i  + '       g   i     ELK; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R # ; ir   r-   r   r   r   test_nested_ion_ioffr3   v   s+   GGI 
WWYYY 
 
XXZZZ 

 

 

 HHJ 
XXZZZ 
 
WWYYY 

 
	 
A YY 
 ZZ 

 
 ZZ 
 Y 

 
s   G'G	G'?HG;	HH#I9H7	:I'I2I	I23JG$	G''G8	;H	HH 	#H4	7I	II	I/*I22J	J	c                  sf     \         P                  ! R 4       R#   \         d   p  Rp ? R# Rp ? ii ; i)g?N)r   closer)   )Ze    r   
test_closer6      s+    B		# B B Bs    00c                  s    \         P                  ! ^y4      p \         P                  ! ^z4      p\         P                  ! ^y4      pR# )iy   N)r   r*   ax1ax2ax3      r   test_subplot_reuser<      s,    
++c
C
++c
C
++c
Cr   c                  s
   \         P                  ! 4        \         P                  ! 4       p \         P                  ! 4       p\         P                  ! 4        \         P                  ! 4        \         P                  ! R R7      p \         P                  ! R R7      p\         P                  ! 4        \         P                  ! 4        \         P                  ! R R7      p \         P                  ! 4       p\         P                  ! 4        R# )polar
projectionN)r   figureaxesr4   r"   r8   r#   r   test_axes_kwargsrC      s    JJL	B
((*C IIKJJL	W	%B
((g
&C IIKJJL	W	%B
((*C IIKr   c                  s(   \         P                  ! 4       p \         P                  ! ^^^4      p\         P                  ! ^^^4      p\         P                  ! ^^^4      p\         P                  ! ^^^RR7      p\         P                  ! ^^^RR7      pR# )r%   r=   r>   N)r   r@   r*   )r!   r"   r8   r9   r:   Zax4s         r   test_subplot_replace_projectionrD      sm     **,C	Q1	B
++aA
C
++aA
C
++aA'
2C
++aA'
2Cr   c                  s    \         P                  ! R ^ R7      p \         P                  ! R ^ R7      pV P                  4        \         P                  ! R ^R7      pR# )r=   )r?   Ztheta_offsetNr   r*   remover7   r;   r   test_subplot_kwarg_collisionrG      s;    
++q
9C
++q
9CJJL
++q
9Cr   c                  s    \         P                  ! 4        \         P                  ! 4       p \         P                  ! 4       p\         P                  ! 4        R # r   )r   r@   gcar4   rB   r#   r   test_gcarI      s,    JJL	B
'')C IIKr   c                  s    \         P                  ! ^o4      p V P                  4        \         P                  ! ^oRR7      pVP                  4        \         P                  ! ^oRR7      pR# )o   r=   r>   rectilinearNrE   r7   r;   r   test_subplot_projection_reuserL      sH    
++c
C JJL
++cg
.C JJL ++cm
4Cr   c                  sL   \         P                  ! ^oRR7      p \         P                  ! ^oRR7      p\         P                  ! ^oRRR7      p\        P                  ! \        RR7      ;_uu_ 4        \         P                  ! ^oRRR7      pR	R	R	4       R	#   + '       g   i     R	# ; i)
rJ   r=   r>   T)r=   )r=   r?   zpolar=True, yet projection='3d'Zmatch3dN)r   r*   r   r(   Z
ValueErrorr7   r;   r    test_subplot_polar_normalizationrO     sy    
++cg
.C
++c
&C
++c'
:C 
z>
@ 
@kk#Td;
@ 
@ 
@ 
@s   .BB#	c                  s    \        4       p \        P                  ! 4       pV P                  V4       RpV F;  pVP	                  4        \        P                  ! VR7      pV P                  V4       K=  	  R# )aitoffr>   N)rP   ZhammerZlambertZ	mollweider=   rK   rN   )setr   r*   ZaddrF   )Zcreated_axesr"   ZprojectionsZprojs       r   test_subplot_change_projectionrR     sZ    5L	BR1K
		[[D) 	 r   c                  sn    \         P                  ! R RR4      w  p \         P                  ! RRR4      w  pR# )g        g      ?ZrogQ?      ?ZboN)r   r=   )Zln1Zln2r#   r   test_polar_second_callrT   .  s,    99RT"DC 99T2t$DCr   c                  s   \         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# )皙?)ZpositionN)rU   rU   rS   rS   )皙?rV   皙?rW   )r   rA   nptestingZassert_allcloseZbboxZ
get_points)ZaxrefZaxtestr#   r   test_fallback_positionrZ   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                  s    \         P                  ! 4       p V P                  ^4      p\         P                  ! 4        \         P                  ! V^,          4      pR# )r&   N)r   r@   
subfigures)fig1subfigsZcurrentr;   r   %test_set_current_figure_via_subfigurer^   F  s8    ::<Dooa GJJL jj$Gr   c                  s    \         P                  ! 4       p V P                  ^4      pV^ ,          P                  ^RR7      pV^,          P                  ^RR7       \         P                  ! V4       R# )r&   T)ZsqueezeN)r   r@   r[   r    Zsca)r!   r]   r"   r;   r   "test_set_current_axes_on_subfigurer_   R  sX    
**,CnnQG			Q		-BAJ4( GGBKr   c                  s    \         P                  ! R 4      p \        P                  P	                  V P
                  RRRP                  R4      ^<R7       R# )IPythonz--pylabz-cZ;)ZtimeoutN)zimport matplotlib.pyplot as pltz<assert plt._REPL_DISPLAYHOOK == plt._ReplDisplayHook.IPYTHON)r   r   r   rY   Zsubprocess_run_helperZstart_ipythonr   )r`   r5   r   test_pylab_integrationra   ^  sN    !!),GKK%% 
 	  & 	r   c                 s   \        \        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                s,   . 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   :)Z
startswithZisspaceZappendZstrip)linesZ	functionsZin_autosummaryZlines   &   r   extract_documented_functionsZ=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   Zparentr	   r   r
   r   r   rQ   r   Z_get_pyplot_commandsZ
differenceZAssertionError)Zpyplot_docsrc   rb   Zdoc_functionsZplot_commandsZmissingZextras          r   test_doc_pyplot_summaryrd   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                  sd   \         P                  ! 4        \         P                  ! \        P                  ! ^^
4      4       \         P
                  ! RR7      w  r\         P                  ! RR.RR.RR7       \         P                  ! 4       pVP                  RR7      p VP                  RR7      pR# )	r%   T)minorg      @g      @ZaZb)ZticksZlabelsre   N)
r   r@   ZplotrX   ZarangeZxticksZyticksrH   Z
get_yticksZget_yticklabels)Ztick_posZtick_labelsr"   r;   r   test_minor_ticksrf     s{    JJLHHRYYq"JJT2H JJc3Zc
$?	B}}4}(H$$4$0Kr   c                  s    \         P                  ! R 4       \         P                  ! 4       p \         P                  ! 4       p \         P                  ! R 4       \         P                  ! R4       R# )ZaggZsvgN)r   Zswitch_backendr@   )r!   r5   r   test_switch_backend_no_closerg     sB    u
**,C
**,Cuur   c                 s    R V n         R# )TN)Z_test_was_here)r@   s   &r   figure_hook_examplerh     s
     Fr   c                  s    R R./p \         P                  ! V 4      ;_uu_ 4        \        P                  ! 4       pRRR4       R#   + '       g   i     R# ; i)zfigure.hooksz0matplotlib.tests.test_pyplot:figure_hook_exampleN)r   Z
rc_contextr   r@   )Ztest_rcr!   r#   r   test_figure_hookri     s?     	KLG 
	 	 jjl 
!	 	 	 s   AA	c            	      s   \         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       \         P                  ! ^4      pR#   + '       g   i     L; i  + '       g   i     L;; i)r%   )Zfigsizez)Ignoring specified arguments in this callrM   N)r%   r&   )r   r@   r   r   UserWarningrX   Zarray)r!   fig2Zfig3r;   r   test_multiple_same_figure_callsrl     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   /C'/C:'C7	:D
	c                  s    \         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 figuresrM   ZallN)r   r@   r   r   rj   )r\   rk   r#   r   test_close_all_warningrm     s?    ::<D 
k)F	G	Gzz%  
H	G	G	Gs   AA,	c                  s    \         P                  ! 4       p ^ ^.^^..p\         P                  ! WP                  R7       R# )r    )ZfignumN)r   r@   ZmatshowZnumber)r!   Zarrr#   r   test_matshowrn     s1    
**,Cq6Aq6
C KKJJ'r   )+r   ZnumpyrX   r   Zpathlibr   r   Z
matplotlibr   Zmatplotlib.testingr   r   r   r   r   r$   r'   r+   r0   r2   r3   r6   r<   rC   rD   rG   rI   rL   rO   rR   rT   rZ   r^   r_   ra   rd   rf   rg   rh   ri   rl   rm   rn   r   r   r   <module>ro      s      
    9 $
>!*	(
$ )$XB20%%2	<5  8		5Np='!!(r   