+
     ]iY  c                   s   ^ RI t ^ RIHt ^ RIHt ^ RIt^ RIt^ RIt^ RI	t
^ RIt^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHtHt ^ RIHt ^ R	IHt ^ R
IHtHt R t ]! R.RR7      R 4       t!]! R.RR7      R 4       t"R t#]! R.4      R 4       t$]! R.4      R 4       t%]! ^R7      R 4       t&]! R.R7      R 4       t']! ^RR.R7      R 4       t(R t)]PT                  PW                  R 4      ]R! 4       4       t,R" t-R# t.R$ t/R% t0R& t1R' t2R( t3R) t4R* t5R+ t6]! R,.R-R7      R. 4       t7]! R/.4      R0 4       t8]Pr                  Pu                  R1R2^/];R33R2^./];R43R5^/];R63R5^./];R73R8^/];R93R8^./];R:3R;^/];R<3R=^/];R>3R?R@/]<RA3.	4      RB 4       t=RC t>]Pr                  Pu                  RD. RJO4      ]Pr                  Pu                  RERRF.4      RG 4       4       t?RH t@RI tAR# )K    N)BytesIO)Path)Figure)Circle)Text)check_figures_equalimage_comparison)needs_usetex)font_manager)OffsetImageAnnotationBboxc                  s\   \         P                  ! 4       w  r\        P                  ! ^ ^\        P                  ,          ^24      p\        P
                  ! V4      p\        P                  ! V4      pVP                  W#VRR7      w  rVpV F  pVP                  R4       K  	  \        4       ;_uu_ 4       p	V P                  V	RR7       V	P                  4       p
RRR4       \        P                  P                  P                  4       pVP!                  X
4       R#   + '       g   i     LK; i)r    Zko)yerrZfmtFsvgformatN)pltsubplotsnpZlinspaceZpisinZ	ones_likeZerrorbarZset_visibler   savefiggetvaluexmlZparsersZexpatZParserCreateZParse)figaxxyr   ZabcZartistfdbufZparser               H/usr/lib64/python3.14/site-packages/matplotlib/tests/test_backend_svg.pytest_visibilityr!      s    llnGC
Aq255y"%A
q	A<<?Dkk!Ttk4GA!5!  
bBu%kkm 
 [[++-F
LL 
s   4$DD+	zfill_black_with_alpha.svgT)Zremove_textc                  sh    \         P                  ! 4       w  rVP                  . RO. RORRRR7       R# )r    皙?ki'  )r   r   r   ZalphasN)r    r"      )r    r    r    )r   r   scatterr   r        r    test_fill_black_with_alphar)   )   s%    llnGCJJ	SuJE    Znoscalec                  s    \         P                  ! \         P                  ! R^^4      \         P                  ! R^^4      4      w  r\         P                  ! V^,          4      p\        P
                  ! 4       w  r4VP                  VRRR7       R# )   Zgraynone)ZcmapZinterpolationNi)r   Zmeshgridaranger   r   r   imshow)XZYZZr   r           r    test_noscaler1   /   s^    ;;ryyQ*BIIb!Q,?@DA
qAvAllnGCIIafFI3r*   c                  s$   \         P                  ! 4       p R pV P                  RVR7       \        4       ;_uu_ 4       pV P	                  VRR7       VP                  4       P                  4       pRRR4       RV R2pR#   + '       g   i     L; i)z$http://test_text_urls.matplotlib.orgtest_text_urls)Zurlr   r   Nz<a xlink:href="z">)r   figureZsuptitler   r   r   decode)r   test_urlr   r   expectedr0   r    r2   r2   8   sm    
**,C5HLL!xL0	bBu%kkm""$ 
 !
"-H	 
s   2A??B	zbold_font_output.svgc                  s   \         P                  ! 4       w  rVP                  \        P                  ! ^
4      \        P                  ! ^
4      4       VP                  R4       VP                  RRR7       VP                  RRR7       R# )i
   nonbold-xlabelbold-ylabelboldZ
fontweight
bold-titleN)r   r   plotr   r-   
set_xlabel
set_ylabel	set_titler'   r(   r    test_bold_font_outputr@   F   sZ    llnGCGGBIIbM299R=)MM"#MM-FM3LL&L1r*   z'bold_font_output_with_none_fonttype.svgc                  s<   R \         P                  R&   \         P                  ! 4       w  rVP                  \        P
                  ! ^
4      \        P
                  ! ^
4      4       VP                  R4       VP                  RRR7       VP                  RRR7       R# )r,   svg.fonttyper7   r8   r9   r:   r;   N)	r   rcParamsr   r<   r   r-   r=   r>   r?   r'   r(   r    (test_bold_font_output_with_none_fonttyperC   O   sh    #)CLL llnGCGGBIIbM299R=)MM"#MM-FM3LL&L1r*   )tolc           	      s   \         P                  ! ^ ^d4      R,          p\         P                  ! V4      p\         P                  ! V4      pVP	                  4       pVP                  W4RR^
R7       VP                  V^,           VRR^
R7       V P	                  4       pVP                  W4RR^
RR7       VP                  V^,           VRR^
RR7       R# )	r    ffffff@-r)r   lwr   Tr   rH   
rasterizedN)r   r-   cosr   r   r<   fig_testfig_refZtr   r   ax_refax_test   &&     r    test_rasterizedrR   Y   s    
		!SS!A
q	A
q	AF
KKcSRK(
KK!QsrK*!GLLscbTL:LL1atL<r*   r   )
extensionsc           
      s2   \         P                  ! ^ ^d4      R,          p\         P                  ! V4      p\         P                  ! V4      pVP	                  4       pVP                  ^ ^4       VP                  RR4       VP                  W4RR^
RR7       VP                  V^,           VRR^
RR7       VP                  V^,           VRR	^
RR7       VP                  V^,           VRR
^
RR7       V P	                  4       pVP                  ^ ^4       VP                  RR4       VP                  W4RR^
RRR7       VP                  V^,           VRR	^
RRR7       VP                  V^,           VRR
^
RRR7       VP                  V^,           VRR^
RRR7       R# )r    rE   g?rF   rG   TrI   r   FZgZm)r   rH   rJ   zorderg?gffffff?g333333?Ng)r   r-   rK   r   r   set_xlimset_ylimr<   rL   rQ   r    test_rasterized_orderingrW   h   se   
		!SS!A
q	A
q	AF
OOAq
OOD#
KKcSRDK9
KK!QsreK<
KK!QsrdK;
KK!QsrdK;!GQT3LLscbT#LFLL1atCLHLL1atCLHLL1auSLIr*   Zpdf)rD   rS   c           	      s,   R R .pVP                  4       pVP                  V^ ,          .V^,          .RR^R7       \        P                  P	                  R4      p\        P                  P                  WBRR7      pVP                  V4       V P                  4       pVP                  V^ ,          .V^,          .RR^RR7       \        P                  P	                  R4      p\        P                  P                  WBRR7      pVP                  V4       R	# )
g?r   Zblack)markerr   rT   r/   g @)rT   T)rX   r   rT   rJ   N)r   r<   mplZ	offsetboxZTextArear   
add_artist)rM   rN   locrO   r   ZaboxrP   rQ   r    test_prevent_rasterizationr\      s    ,CF
KKQ3q6(3'!KDs#A==''s';D
d!GLL#a&CF8C71   " 	s#A==''s';Dtr*   c                  s~   R  p \         P                  ! 4       pVP                  ^^^4      pVP                  4        \	        ^4       F  pVP                  ^ ^.^ V.RRR7       K  	  \         P                  ! 4       pVP                  ^^^4      pVP                  4        \	        ^4       F  pVP                  ^ ^.^ V.RRR7       K  	  \         P                  ! 4       pVP                  ^^^4      pVP                  4        \	        ^4       F5  pVP                  ^ ^.V^ .RRR7       VP                  ^ ^.^ V.RRR7       K7  	  \         P                  ! 4       pVP                  ^^^4      p	V	P                  4        V	P                  R4       \	        ^4       F5  pV	P                  ^ ^.V^ .RRR7       V	P                  ^ ^.^ V.RRR7       K7  	  \         P                  ! 4       p
RV
n        V
P                  ^^^4      pVP                  4        \	        ^4       F  pVP                  ^ ^.^ V.RRR7       K  	  R# )c                 s    \        4       ;_uu_ 4       pV P                  VR R7       VP                  4       P                  4       pRRR4       XP	                  RV 24      #   + '       g   i     L$; i)r   r   NZ<)r   r   r   r4   Zcount)r   Ztagr   r   s   &&  r    	count_tagZ%test_count_bitmaps.<locals>.count_tag   sS    YY"KK5K)++-&&(C  yy1SE## Ys   2A!!A1	zb-F)rJ   TN)r   r3   add_subplotZset_axis_offranger<   Zset_rasterizedZsuppressComposite)r]   fig1ax1Znfig2ax2Zfig3ax3Zfig4Zax4Zfig5Zax5r   r    test_count_bitmapsre      s   $ ::<D


1a
#C1X!R1a&$59  ::<D


1a
#C1X!R1a&$48  ::<D


1a
#C1X!R1a&$59!R1a&$48  ::<D


1a
#Ct1X!R1a&$59!R1a&$48  ::<D!D


1a
#C1X!R1a&$48 r*   Zdefaultc                  s@   \        4       p V P                  R R RRR7       \        4       ;_uu_ 4       pV P                  VRR7       VP	                  4       pRRR4       \
        P                  P                  P                  X4      pRpRpR#   + '       g   i     L?; i)	      ?z\textwonT)Zusetexr   r   Nhttp://www.w3.org/2000/svgzSFSS3583-8e)	r   textr   r   r   r   etreeElementTree
fromstring)r   r   r   treensZwon_id         r    test_unicode_wonro      sv     (CHHR[H.	bBu%kkm 
 99  ++C0D	%BF 
s   $BB	c                  sF   \         P                  P                  R RRR/4       Rp \         P                  ! 4       w  rVP	                  \
        P                  ! R4      ^V 4       VP                  \
        P                  ! R4      \
        P                  ! R4      4       VP                  ^ ^4       \        4       ;_uu_ 4       pVP                  VRR	7       VP                  ^ 4       VP                  4       P                  4       pR
R
R
4       R
#   + '       g   i     R
# ; i)rA   r,   zfont.stretchZ	condensedzUnlikely to appear by chancez
2019-06-30z
2019-01-01z
2019-12-31r   r   N)r   rB   Zupdater   rh   r   Z
datetime64rU   rV   r   r   ZseekZreadr4   )r6   r   r   r   r   r0   r    "test_svgnone_with_data_coordinatesrp      s    LLMN-HllnGCGGBMM,'H5KKl+R]]<-HIKK1	bBu%

ggi  
s   ADD 	c                 s@  aa ^ RI Ho ^ RIHo \        P
                  ! 4       p V P                  ^4      pVP                  RR.RR..RR7       VP                  . RO. RORR	7       VP                  . ROR
R	7       VP                  4        VP                  4       pVP                  . RO. RO4       V P                  ^RR7      pVP                  . RO. RO4       V P                  ^RR7      pVP                  ^^.^^.^^.4       V P                  P                  4        / p\        V P!                  RR7      4       FN  w  rgVP#                  4       '       g   K  RVP$                  P&                   RV 2pWuV&   VP)                  V4       KP  	  \+        4       ;_uu_ 4       p	V P-                  V	RR7       V	P/                  4       P1                  4       p
RRR4       VV3R lpVP3                  4        F  w  rV! W4      '       g   K  K  	  R#   + '       g   i     LB; i)z+Test that object gid appears in output svg.)	OffsetBox)Tickg      ?g       @g      @Zauto)ZaspectZ	myscatter)ZlabelZmyplotZpolar)Z
projectionZ3dT)Zinclude_selfZtest123_r   r   Nc                 sV  < \        VS4      '       d   R # \        V\        4      '       d(   VP                  4       R8X  d   R # VP                  f   R # \        V\        P
                  4      '       dZ   VP                  4       w  r#\        V4      \        V4      u;8X  d
   ^8X  d    R #  \        VR4      '       d   VP                  f   R # \        VS4      '       dL   VP                  4       pV^ 8X  d   R # VP                  4       pV\        V4      8  g   V\        V4      8  d   R # R# )FZ axesT)Z
isinstancer   Zget_textrt   r   ZLine2DZget_datalenZhasattrZget_locZget_view_intervalZminZmax)gidobjZxdataZydatar[   Zvirq   rr   s   &&    r    includeZtest_gid.<locals>.include  s    c9%%c4  ||~#!c3::&&<<>LE5zSZ,1, -S&))SXX-=c4  ++-Cax&&(BSW}c"gr*   r%         )rz   r{   r%   )r    g      ?r{   )matplotlib.offsetboxrq   Zmatplotlib.axisrr   r   r3   r^   r.   r&   r<   ZlegendZtwinxZbarcanvasdraw	enumerateZfindobjZget_visibleZ	__class__Z__name__set_gidr   r   r   r4   items)r   ra   Zax1arc   rd   ZgdicZidxrw   rv   r   r   rx   rq   rr   s               @@r    test_gidr      s   .$
**,C
//#
CJJR2r(#FJ3KK	9KK8HHYhH'JJL99;DHHY	"
//#'/
2CHH[)$
//#$/
/CHHaVaVaV$JJOODckktk<=??CMM2231SE:CIKK	 > 
bBu%kkm""$ 
0 JJL3 !9 
s   !2HH	c                  s   \        4       \        R	^
R7      r\        ^4       F7  pV P                  4       pVP	                  V..4      pVP                  V4       K9  	  \        R	^R7      pV P                  4       pVP	                  ^ ..4      pVP                  V4       \        4       ;_uu_ 4       pV P                  VRR7       VP                  4       pRRR4       \        P                  P                  P                  X4      pRp	\        4       p
VP                  RV	 R24       F'  pVP                  R,          pV
P!                  V4       K)  	  R#   + '       g   i     L; i)
r    )Zradiusr   r   Nrg   .//{z}clipPath[@id]id)r    r    )r   r   r_   r^   r.   Zset_clip_pathr   r   r   r   ri   rj   rk   ZsetfindallattribZadd)r   Zcircleir   ZaimgZinner_circler   r   rl   rm   Zclip_path_idsnodeZnode_ids                r    test_clip_path_ids_reuser   /  s   (F6"51X__yy1#6" 
 &+L		B99qcUD|$	bBu%kkm 
 99  ++C0D	%BEMuRD89++d#'" : 
s   0$EE#	c                  sH    \         P                  ! \        4       R RR7       R# )ZsvgzZtight)r   Zbbox_inchesN)r   r   r    r*   r    test_savefig_tightr   J  s     KK	&g>r*   c                  s   \         P                  ! 4       w  rVP                  . R	O. R
O4      pVP                  . RO4       \         P                  ! . RO. R
O4      w  pVP                  R4       \         P                  ! . RO. R
ORRR7      w  pVP                  R4       \        4       pV P                  VRR7       VP                  4       pR F  pK  	  R# )r%   Nzhttps://example.com/bazr,   r   )Z	linestylerX   zhttps://example.com/quuxr   r   ry      r+   i   )zhttps://example.com/foozhttps://example.com/barN)rz   r{   r   )r{   r   r+   )s   foos   bars   bazs   quux)	r   r   r&   Zset_urlsr<   set_urlr   r   r   )r   r   r$   Zpr   Zvrn   r    r5   r5   P  s     llnGC 	

9i(AJJKL 
)Y	'BAII'( 
)Y&	EBAII()	AKK%K 	

A..r*   c                 sH   V P                  R R4       \        P                  ! 4       w  rVP                  . RO. RO4       \	        VP
                  P                  4       4       F  w  r4VP                  RV 24       K  	  \        P                  ! 4       w  rRVP                  . RO. RO4       \	        VP
                  P                  4       4       FA  w  r4VP                  P                  RV 24       VP                  P                  RV 24       KC  	  \        4       pVP                  VRR7       VP                  4       p\        4       pVP                  VRR7       VP                  4       p\        \        VP
                  P                  4       4      4       F  pK  	  R# )SOURCE_DATE_EPOCH19680801zhttps://example.com/r   r   Nry   r   )setenvr   r   r&   r   ZyaxisZget_major_ticksr   Zlabel1Zlabel2r   r   r   r_   ru   )monkeypatchr`   r   r   Ztickrb   Zb1Zb2s   &       r    test_url_tickr   h  s4   *J7||~HDJJy)$RXX5578+A3/0 9 ||~HDJJy)$RXX557821#6721#67 9 
BLLEL"	B	BLLEL"	B3rxx//1233r*   c                 s   V P                  R R4       \        P                  ! 4       w  r\        4       ;_uu_ 4       pVP	                  VRR7       VP                  4       P                  4       pRRR4       \        4       ;_uu_ 4       pVP	                  VRRRRRRRRR/R	7       VP                  4       P                  4       pRRR4       R#   + '       g   i     Lg; i  + '       g   i     R# ; i)
r   r   r   r   NDateCreatorFormatTyper   metadata)r   r   r   r   r   r   r4   )r   r   r   r   r   s   &    r    test_svg_default_metadatar     s    *J7llnGC	bBu%kkm""$ 
 
bBui08$0N 	Okkm""$ 
 
 
s   2C;C C	 C1	c           
      s   V P                  R R4       R\        P                  RRRRRR/pR	pR
pRpRp\        P                  ! 4       w  rgV F  p\        4       ;_uu_ 4       p	VP                  V	RVP                  4       R/R7       V	P                  4       P                  4       p
RRR4       \        P                  P                  P                  X
4      pVP                  RV RV RV R24      w  pV FP  pVP                  RV V 24      pW8X  d   K!  Vw  p\        P                  P                  P                  VRR7      pKR  	  K  	  R#   + '       g   i     L; i)r   r   Zcreatordatez
1970-08-16r   zimage/svg+xmltypeZ
StillImage{http://www.w3.org/2000/svg}-{http://www.w3.org/1999/02/22-rdf-syntax-ns#} {http://creativecommons.org/ns#}"{http://purl.org/dc/elements/1.1/}r   Nr   ./	metadata/zRDF/ZWorkZunicode)Zencoding)r   rY   Z__version__r   r   r   r   titler   r4   r   ri   rj   rk   r   Ztostring)r   Zmetadata_containsSVGNSRDFNSCCNSDCNSr   r   namer   r   rootZworkZkeydataZxmlstrs   &               r    test_svg_clear_default_metadatar     s:    *J7"COOV\!?FLJ +E;E-D/DllnGC!YY"KK5DJJL$3GKH++-&&(C  yy$$//4r%	%TF$GH$C<<"TF3% 01D{ EDYY**33D93MF % "Ys   !AEEc                  sZ   \         P                  ! 4       w  r\        4       ;_uu_ 4       pV P                  VR RRRRRRRR/R7       VP	                  4       P                  4       pRRR4       Rp\        P                  P                  P                  X4      pR#   + '       g   i     L=; i)r   r   Nr   r   r   r   r   )
r   r   r   r   r   r4   r   ri   rj   rk   )r   r   r   r   r   r   rn   r    test_svg_clear_all_metadatar     s     llnGC	bBui08$0N 	Okkm""$ 

 +E99  ++C0D 
s   ;BB*	c                  s   . ROp . ROpR\         P                  ! R^^4      \         P                   ! R^^^^^4      .RR/V  Uu/ uF  q"V R2bK
  	  upCV Uu/ uF  q"V R2V R	2.bK  	  upCp\        P                  ! 4       p\	        4       ;_uu_ 4       pVP                  VR
VR7       VP                  4       P                  4       pRRR4       RpRpRp	Rp
\        P                  P                  P                  X4      pVP                  RV RV R24      w  pVP                  RV R24       Uu. uF  qP                  NK  	  ppVP                  RV	 RV
 R24       Uu. uF  pVP                  V R2,          NK  	  ppR.V O FL  pVR8X  d   K  VP                  RV	 RV
 VP                  4        24       Uu. uF  pVP                  NK  	  ppKN  	  V FS  pVR8X  d   K  VP                  RV	 RV
 VP                  4        RV	 RV
 R2
4       Uu. uF  pVP                  NK  	  ppKU  	  VP                  RV	 RV
 R24       Uu. uF  qP                  NK  	  ppVP                  RV	 RV
 RV RV R2	4       Uu. uF  qP                  NK  	  ppR# u upi u upi   + '       g   i     EL; iu upi u upi u upi u upi u upi u upi ) Coverager   Keywordsr   i  ZDescriptionzdescription
textz fooz barz bazr   r   Nr   r   r   r   r   r   ZRDFr   zWork/r   ZresourceZ/zAgent/r   zsubject/zBag/Zli)r   Z
IdentifierZLanguageZRelationZSourceTitler   )ZContributorr   r   Z	PublisherZRights)datetimer   r   r3   r   r   r   r4   r   ri   rj   rk   r   rh   r   Zlower)Zsingle_valueZmulti_valuer#   r   r   r   r   r   r   r   r   r   Zrdfr   ZtitlesZtypesZvaluesZdatess                     r    test_svg_metadatar     s5   %LOKtQ*""4Aq!Q79* #/
/,Q4j=,
/	
 1<
<1!DzaS:&&
<H **,C	bBux8kkm""$ 
 +E;E-D/D99  ++C0D<<"UG9UG378DC %)LL2eWE1B$CD$CDii$CFD r$uTF$%?@B@ [[E7(+,,@ 
 B +l+;!kkBtfE$	{*KLNLd ))L 	 N , 
? TF%vaggi[$vdV5IKLK IIK 	 L  $';;D6tfD/I#JK#J4YY#JEK kkBtfE$xwd5'LMOM !iiM  OFY 0
< 
 EBNL LOs<   JJ3J$3J8#J=>KKKK$J5	zmulti_font_aspath.svgg?c                  st   \         P                  ! R .R7      p \        \         P                  ! V 4      4      P                  R8w  d   \
        P                  ! R4       \        P                  ! RRR .^R7       \        P                  ! RRR	7       \        P                  ! 4       pVP                  R
RR4       R# )WenQuanYi Zen Heifamilywqy-zenhei.ttcFont may be missingfontDejaVu Sansr   sizer   ZpathZfonttype333333?ffffff?"   There are 几个汉字 in between!N)fmFontPropertiesr   findfontr   pytestskipr   rcr3   rh   fpr   r(   r    test_multi_font_type3r     s    			#6"7	8BBKKO!!%55)*FF6=*=>RHFF56"
**,CHHT5>?r*   zmulti_font_astext.svgc                  st   \         P                  ! R .R7      p \        \         P                  ! V 4      4      P                  R8w  d   \
        P                  ! R4       \        P                  ! 4       p\        P                  ! RRR7       \        P                  ! RRR .^R	7       VP                  R
RR4       R# )r   r   r   r   r   r,   r   r   r   r   r   r   r   N)r   r   r   r   r   r   r   r   r3   r   rh   r   r(   r    test_multi_font_type42r     s    			#6"7	8BBKKO!!%55)*
**,CFF56"FF6=*=>RHHHT5>?r*   zmetadata,error,messager   z,Invalid type for Date metadata. Expected strz1Invalid type for Date metadata. Expected iterabler   z0Invalid type for Keywords metadata. Expected strz5Invalid type for Keywords metadata. Expected iterabler   z/Invalid type for Creator metadata. Expected strz4Invalid type for Creator metadata. Expected iterabler   z-Invalid type for Title metadata. Expected strr   z.Invalid type for Format metadata. Expected strZFooZBarzUnknown metadata keyc           
      s,   \         P                  ! WR 7      ;_uu_ 4        \        4       ;_uu_ 4       p\        P                  ! 4       pVP                  VRV R7       RRR4       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i))Zmatchr   r   N)r   Zraisesr   r   r3   r   )r   ZerrorZmessager   r   s   &&&  r    test_svg_incorrect_metadatar   )  sR    & 
u	,	,gii2jjlBux8 /8	,	,ii	,	,	,s"   B*A/	B/A?:BB	c                  s   \         P                  ! 4       p V P                  R R RRR7       \        4       ;_uu_ 4       pV P	                  VRR7       VP                  4       P                  4       pRRR4       R#   + '       g   i     R# ; i)rf   z<'"&>)rv   r   r   N)r   r3   rh   r   r   r   r4   )r   r   r   s      r    test_svg_escaper   A  sZ    
**,CHHS#yiH0	bBu%kkm""$ 
s   2A99B
	font_strinclude_genericFc           	      sT   \         P                  ! R .R7      p\        \         P                  ! V4      4      P                  R8w  d   \
        P                  ! R4       \        R V P                  R4      4      Evr4p\        V4      pV'       d
   WE.,           pV\        P                  RV 2&   V\        P                  R&   R\        P                  R	&   \        P                  ! 4       w  rxVR
8X  d   . ROp	MV.p	V	 F5  p
VP                  RRRW:.RR7       VP                  RRRV.VOV
NRR7       K7  	  VP                  R4       \        4       ;_uu_ 4       pVP!                  VRR7       VP#                  4       pRRR4       \$        P&                  P(                  P+                  X4      pRp^ pVP-                  RV R24       FK  pV^,          p\/        R \/        VP1                  4       4      R,          P                  R4       4       4      pKM  	  R#   + '       g   i     L; i)r   r   r   r   c                 s$    V P                  R 4      # )Z'stripr      &r    <lambda>Z&test_svg_font_string.<locals>.<lambda>]  s    !''#,r*   z, zfont.z	font.sizer,   rA   
sans-serifrf   r   Zcenter)r   Zhar"   Zoffr   r   Nrg   r   z}textc              3   sv   "   T F/  p\        R  VP                  4       P                  R4      4      x  K1  	  R# 5i)c                 s"    V P                  4       # )Nr   r   r   r    r   Z0test_svg_font_string.<locals>.<genexpr>.<lambda>  s
    !'')r*   Z:N)mapr   split)Z.0rs   s   & r    Z	<genexpr>Z'test_svg_font_string.<locals>.<genexpr>~  s1      
C #QWWY__S%9::Cs   79styleZ;)Zsansr   z
sans serif)r   r   r   r   r   r   r   r   r   ru   r   rB   r   rh   Zaxisr   r   r   r   ri   rj   rk   r   dictr   )r   r   r   ZexplicitZrestZgenericr   r   r   Zgeneric_optionsZgeneric_namer   r   rl   rm   Z
text_countZtext_elementZ
font_styles   &&                r    test_svg_font_stringr   J  s    
		#6"7	8BBKKO!!%55)*"t 4 HW w<Di&*CLL5	"# $CLL#)CLL llnGC,>")'
S> /H 	 	> 	S> 64668 	 	E ( GGEN	bBu%kkm 
 99  ++C0D	%BJuRD%78a
 
,,,./8>>sC
 

 9 
s   $HH'	c                  s    \         P                  ! 4       p V P                  4       p\        P                  ! R4      pRp\        VRR7      pWP                  n        \        WCRRRR\        RRR7      R	7      pVP                  R
4       VP                  V4       \        4       ;_uu_ 4       pV P                  VRR7       VP                  4       P                  R4      pRRR4       RpR#   + '       g   i     RpR# ; i)    r"   )Zzoomr   zoffset pointsrf   z->zangle,angleA=0,angleB=90,rad=3)Z
arrowstyleZconnectionstyle)ZxyboxZxycoordsZ	boxcoordsZpadZ
arrowpropsza test for issue 20044r   r   zutf-8Nz<g id="a test for issue 20044">)r   r   )g333333?g?)g      ^@g      T)r   r3   r^   r   Zonesr
   Zimagert   r   r   r   rZ   r   r   r   r4   )	r   r   Zarr_imgZxyZimageboxZabr   r   r6   s	            r    test_annotationbbox_gidr     s     **,C		BgghG	B7-HNN	*!'"1#''+,L$N
B JJ'(MM"	bBu%kkm""7+ 
 1H	 
 1Hs   +3C**C=	c                 s   \         P                  ! 4       w  rVP                  . RO. RO4       V P                  P	                  4        \        4       ;_uu_ 4       pV P                  VRR7       VP                  4       P                  4       pRRR4       \        P                  P                  P                  X4      pRp\         P                  ! RVR7       \        4       ;_uu_ 4       pV P                  VRR7       VP                  4       P                  4       pRRR4       \        P                  P                  P                  V4      pR#   + '       g   i     L; i  + '       g   i     LN; i)z=Test that `svg.id` rcparam appears in output svg if not None.r   r   Nza test for issue 28535)r   ry   )r{   rz   r%   )r   r   r<   r}   r~   r   r   r   r4   r   ri   rj   rk   r   )r   r   r   r   rl   Zsvg_idrn   r    
test_svgidr     s     llnGCGGIy!JJOO 
bBu%kkm""$ 
 99  ++C0D &FFF5V	bBu%kkm""$ 
 99  ++C0D# 
 
s   2E)2E!E	!E1	)z7'DejaVu Sans', 'WenQuanYi Zen Hei', 'Arial', sans-serifz='DejaVu Serif', 'WenQuanYi Zen Hei', 'Times New Roman', serifz%'Arial', 'WenQuanYi Zen Hei', cursivez&'Impact', 'WenQuanYi Zen Hei', fantasyzA'DejaVu Sans Mono', 'WenQuanYi Zen Hei', 'Courier New', monospace)Br   Zior   Zpathlibr   Zxml.etree.ElementTreer   Zxml.parsers.expatr   Znumpyr   Z
matplotlibrY   Zmatplotlib.figurer   Zmatplotlib.patchesr   Zmatplotlib.textr   Zmatplotlib.pyplotZpyplotr   Zmatplotlib.testing.decoratorsr   r   Zmatplotlib.testing._markersr   r	   r   r|   r
   r   r!   r)   r1   r2   r@   rC   rR   rW   r\   re   r   Zcontextro   rp   r   r   r   r5   r   r   r   r   r   r   r   ZmarkZparametrizeZ	TypeErrorZ
ValueErrorr   r   r   r   r   r   r*   r    <module>r      s           $ %    O 4 ) >& ./TBF CF
 9+404 14 )*+2 ,2 <=>2 ?2 = = (J )J, u~6 7(6(t 9H  H2"<~#6?006#D4B2 6*r *+5	@ 6	@ *+,	@ -	@ 1a[)KLqc]I8:!_i791#	<>^Y68!y;=q\946]I57U^Z!78!4 $9%$93  &  *T5M:.' ;.'b>.r*   