+
     ]i  c                   s   ^ 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 ^ RIHt ^ RIHt ]! R.RR7      R	 4       t]! R
.RR] P&                  ! 4       R8X  d   ^ MRR7      R 4       t]! R.] P&                  ! 4       R8X  d   ^ MRR7      R 4       t]! R.4      R 4       tR tR t]! R.RRR7      R 4       t]! R.RR.RR7      R  4       t]! R!.RR7      R" 4       tR# tR# )$    N)image_comparison)Path)RendererBase)PathEffectRendererZpatheffect1T)remove_textc                  s   \         P                  ! 4       p V P                  ^^.^^..4       V P                  RRR\	        RR^R7      ^R\
        P                  ! ^RR7      .R7      pVP                  P                  \
        P                  ! ^RR7      \
        P                  ! 4       .4       \
        P                  ! ^RR7      .pV P                  R	R
VR7       R# )   Ztestz->Zangle3)Z
arrowstyleZconnectionstylelwcenterw	linewidth
foreground)Z
arrowpropssizehapath_effectsTZ-)Z	linestyler   N)      ?r   )        r    )pltsubplotimshowZannotateZdictr   
withStrokeZarrow_patchset_path_effectsStrokeNormalZgrid)ax1Ztxtpes      H/usr/lib64/python3.14/site-packages/matplotlib/tests/test_patheffects.pytest_patheffect1r      s    
++-CJJAA 
,,vx"&$7?A#G8%1%<%<qHK&M %N	  OC OO$$l&9&9AEH'J&2&9&9&;&= > 
!
!A#
>	?BHHTSrH2    Zpatheffect2Zmpl20Zx86_64gQ?)r   styletolc                  s   \         P                  ! 4       p \        P                  ! ^4      P	                  R4      pV P                  VRR7       V P                  VRR7      pVP                  \        P                  ! ^RR7      .R7       V P                  VRR	R
7      p\         P                  ! V\        P                  ! ^RR7      .R7       R# )i   Znearest)ZinterpolationkZcolorsr	   r
   r   z%2.0fT)ZfmtZuse_clabeltextN)   r#   )r   r   npZarangeZreshaper   contoursetr   r   clabelZsetp)ax2ZarrZcntrZclbls       r   test_patheffect2r*       s     ++-C
))B-


'CJJs)J,;;s3;'DHH<22Q3OPHQJJtJ>EHHU'22Q>AC DEr   Zpatheffect3g~jt?)r   c            
      s~   \         P                  ! . R#OR^R7      w  p V P                  \        P                  ! 4       \        P
                  ! 4       .4       \         P                  ! R\        P                  ! ^RR7      .R7       \         P                  ! V .R.RR	R
7      pVP                  P                  \        P                  ! 4       .4       \         P                  ! ^^RRRRRR/R7      p\        P                  ! RRR7      \        P                  ! R$RR7      .pVP                  V4       VP                  4       P                  V4       \        P                  ! R%RRR7      \        P                  ! RRRR7      .p\         P                  ! 4       P                  RRR^KRR R!7      pVP                  V4       R"# )&r   zo-b)r   ztesting$^{123}$rr
   r"   z
Line 1$^2$Tz
upper left)ZfancyboxZlocz	Drop testwhiteboxstylezcircle,pad=0.1colorZred)r.   bboxg      @r    blue)Zshadow_rgbFaceZxxxxZgray)offsetZhatch	facecolorblackg?)	edgecolorr2   r   g{Gz?g?zHatch shadowi  r   )ZfontsizeZweightvaN)r      r#      r6   )i   )r7   i)r   plotr   r   SimpleLineShadowr   Ztitler   legendZlegendPatchZwithSimplePatchShadowtextr   Zget_bbox_patchPathPatchEffectZgcf)p1Zlegr<   r   Zt        r   test_patheffect3r@   0   su    ((?Ea
0CB668%,,.0 1II"--cJKM **bTM?T|
LCOO$$l&H&H&J%KL88Aq+W$&6GID



=

,
,WV
L
NB"**2.

&
&gV179

&
&G*-/
0B
 		tS.2d" 	 	$Arr   zstroked_text.pngc                  s   . ROp ^2p\         P                  ! R4      p\        V 4       Fs  w  r4VP                  RRVR,          ,
          VRRRRRVR	R
/R7      pVP	                  \
        P                  ! V^
,          RR7      \
        P                  ! 4       .4       Ku  	  VP                  ^ ^4       VP                  ^ ^4       VP                  R4       R# )A B C D E F G H I J K Lg{Gz?g?gp=
ף?r   Zleftr5   r   r   r.   r,   )xysZfontdictr3   r
   ZoffN)rA   zM N O P Q R S T U V WzX Y Z a b c d e f g h i jzk l m n o p q r s t u vzw x y z 0123456789z!@#$%^&*()-=_+[]\;'z,./{}|:"<>?)r    r    r   r   )r   ZaxesZ	enumerater<   r   r   r   r   set_xlimset_ylimaxis)Ztext_chunksZ	font_sizeaxZiZchunkr<   s         r   test_patheffects_stroked_textrI   M   s    K I	,	Bk*ww#D.U!%vtX!'GW!F  G 	|22Y^>E G+2246 	7 + KK1KK1GGENr   c                  s   \         P                  ! ^R7      p \         P                  ! \        ^
4      4      w  pVP	                  \
        P                  ! 4       \
        P                  ! 4       .4       V P                  P                  4       p\
        P                  ! VP                  4       V4      pVP                  ^4      VP                  ^4      8X  g   Q hR# )i   )ZdpiN)r   Zfigurer9   Zranger   r   r:   r   ZcanvasZget_rendererr   Zget_path_effectsZpoints_to_pixels)figr>   rendererZpe_rendererr)   r    test_PathEffect_points_to_pixelsrL   i   s    
**
C
((59
CB668%,,.0 1zz&&(H11
x)K $$R(K,H,H,LLLLr   c                  sZ    \         P                  ! RR7      p V P                  R8X  g   Q hR# )r7   )r1   N)r7   r#   )r   ZSimplePatchShadowZ_offset)r   s    r   test_SimplePatchShadow_offsetrM   v   s$    		'	'v	6B::r   Z
collectiongQ?)r   r   c            	      sZ   \         P                  ! \         P                  ! ^ ^
^4      \         P                  ! R^^d4      4      w  r\         P                  ! V 4      \         P                  ! V4      ,           p\
        P                  ! V4      pVP                  \        P                  ! RR^R7      \        P                  ! ^R7      .R7       \
        P                  ! VRR7       FB  pVP                  \        P                  ! R^R	7      .4       VP                  R
RRRRR/4       KD  	  R# )r    r3   none)r4   r2   r   )r   r"   r,   r!   r    )r   r   r-   Zsawtoothr2   r4   r0   Ni)r$   meshgridlinspacesinZcosr   r%   r&   r   r=   r   r'   r   r   Zset_bbox)rB   rC   ZdataZcsr<   r?   r   test_collectionrR   {   s    ;;r{{1b#.B30GHDA66!9rvvay D	T	BFF$$w&TVWa(*F + 

2g.|66#AB D E 	Fz:{F"F, 	- /r   ZtickedstrokeZpngg)\(?)r   Z
extensionsr   c                  s   \         P                  ! ^^RR7      w  p w  rp\        P                  ! 4       p\        P
                  ! VR^\        P                  ! R^
^R7      .R7      pVP                  V4       VP                  R4       VP                  R^4       VP                  R^4       VP                  ^ ^.^ ^.R\        P                  ! ^^R7      .R7       ^ep\        P                  ! R	R
V4      pR\        P                  ! V^,          4      ,          R,           pVP                  WxR\        P                  ! 4       .R7       VP!                  4        ^ep^ip	\        P                  ! RRV4      p
\        P                  ! RRV	4      p\        P"                  ! W4      w  r^V,          V,           R,
          ) pV^V,          ,           ^,
          ) pRVR,          ,           V,
          pVP%                  WV^ .RR7      pVP'                  \        P                  ! ^R7      .R7       VP%                  WV^ .RR7      pVP'                  \        P                  ! ^<^R7      .R7       VP%                  WV^ .RR7      pVP'                  \        P                  ! ^R7      .R7       VP                  ^ ^4       VP                  ^ ^4       R# )r   )ZfigsizerN   )anglespacinglength)r2   r   r   ZequalZ )rT   rS   )Zlabelr   r   r   g333333?g?gMbP?g      @g      @g?r!   )rS   r"   )rS   rU   )rT   N)i   r7   iir8   )r    )r+   )Zb)r   Zsubplotsr   Zunit_circlepatchesZ	PathPatchr   ZwithTickedStrokeZ	add_patchrG   rE   rF   r9   r$   rP   rQ   r;   rO   r%   r&   )rJ   r   r(   Zax3ZpathZpatchZnxrB   rC   ZnyZxvecZyvecZx1Zx2Zg1Zg2Zg3Zcg1Zcg2Zcg3s                       r   test_tickedstrokerW      sb    <<1g>C#CDdf%%C-.	0J1 2E MM%HHWLLQLLQHHaVaV3'88?BD E  F 
B
Cb!AbffQUmc!AHHQL,I,I,K+LHMJJL	B	B ;;uc2&D;;uc2&D [[$FB r6B;	BB;?	B	bBh	B
++bb1#f+
5CGG,77cBCGD
++bb1#f+
5CGG,77bKLGM
++bb1#f+
5CGG,77BCGDLLALLAr   zspaces_and_newlines.pngc            
      s4   \         P                  ! 4       p R pRpV P                  RRVRR^RR/R7      pV P                  RRVRR^RR	/R7      pVP                  \        P
                  ! 4       .4       VP                  \        P
                  ! 4       .4       R
# )z	         z
Newline also causes problemsg      ?g      ?r   r.   Zsalmon)r   r5   r   r/   g      ?ZthistleN)r   r   r<   r   r   r   )rH   Zs1Zs2Ztext1Ztext2r?   r   $test_patheffects_spaces_and_newlinesrX      s    	B	B	)BGGCrh8"!8,  .EGGCrh8"!9-  /E	L//123	L//123r   c                  s     ! R  R\         4      p \        \        P                  ! 4       .V ! 4       4      pVP	                  R4      R8X  g   Q hVP                  R4      R8X  g   Q hR# )c                   sB   a a ] tR t^t oV 3R ltRR ltR tRtVtV ;t	# )Ltest_patheffects_overridden_methods_open_close_group.<locals>.CustomRendererc                s$   < \         SV `  4        R # N)Zsuper__init__)self	__class__s   &r   r[   ZUtest_patheffects_overridden_methods_open_close_group.<locals>.CustomRenderer.__init__   s    Gr   c                    R # )open_group overridden )r\   rD   Zgids   &&&r   
open_groupZWtest_patheffects_overridden_methods_open_close_group.<locals>.CustomRenderer.open_group   s    *r   c                r^   )close_group overriddenr`   )r\   rD   s   &&r   close_groupZXtest_patheffects_overridden_methods_open_close_group.<locals>.CustomRenderer.close_group   s    +r   r`   rZ   )
Z__name__Z
__module__Z__qualname__Z__firstlineno__r[   ra   rc   Z__static_attributes__Z__classdictcell__Z__classcell__)r]   Z__classdict__s   @@r   CustomRendererrY      s     		+	, 	,r   rd   rD   r_   rb   N)r   r   r   r   ra   rc   )rd   rK   s     r   4test_patheffects_overridden_methods_open_close_groupre      s_    , , "<#6#6#8"9>;KLHs#'>>>>$(@@@@r   )ZplatformZnumpyr$   Zmatplotlib.testing.decoratorsr   Zmatplotlib.pyplotZpyplotr   Zmatplotlib.patheffectsZpatheffectsr   Zmatplotlib.pathr   Zmatplotlib.patchesrV   Zmatplotlib.backend_basesr   r   r   Zmachiner*   r@   rI   rL   rM   rR   rW   rX   re   r`   r   r   <module>rf      s@     :  -   $ 1 5 =/t43 53" =/t7#++-9atEEEE =/#++-9auFF6 %&' (6
M 
 <.d':- ;- >"%//d ,-4@	4 A	4Ar   