+
     ]i  c                   s
   ^ 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.RRR7      R	 4       t]! R
.RRR7      R 4       t]! R.RR] P                   ! 4       R8X  d   ^ MRR7      R 4       tR tR tR tR tR tR# )    N)
same_color)image_comparison)art3dzlegend_plot.pngTZmpl20)remove_textstylec                  s
   \         P                  ! \        R R7      R7      w  r\        P                  ! ^
4      pVP                  V^V,
          RRRR7       VP                  W"^,
          RRRR7       VP                  4        R# )	3d
projectionZ
subplot_kwZoyzz=1)zdirlabelzz=-1N)pltsubplotsdictnparangeplotlegend)figaxxs      O/usr/lib64/python3.14/site-packages/mpl_toolkits/mplot3d/tests/test_legend3d.pytest_legend_plotr      s_    lldd&;<GC
		"AGGAq1uc5G1GGA1uc6G2IIK    zlegend_bar.pngc                  s(   \         P                  ! \        R R7      R7      w  r\        P                  ! ^
4      pVP                  W"RRRR7      pVP                  W"RRR1,          RRR	R7      pVP                  V^ ,          V^ ,          .R
R.4       R# )r   r   r	   r
   ZedgeZm)r   ZalignZcolorNr   ZgZupZdown)r   r   r   r   r   Zbarr   )r   r   r   Zb1Zb2s        r   test_legend_barr      sv    lldd&;<GC
		"A	3fC	8B	TrT7F#	>BIIr!ubentVn-r   z	fancy.pngZx86_64gI+?)r   r   Ztolc            	      sD   \         P                  ! \        R R7      R7      w  rVP                  \        P
                  ! ^
4      \        P                  ! ^
^4      \        P                  ! ^
^4      RRR7       VP                  \        P
                  ! ^
4      \        P
                  ! ^
^ R4      RR7       VP                  \        P                  ! ^
^4      \        P
                  ! ^
4      \        P                  ! ^
^
4      RRRR	7       VP                  R
^R^R7       R# )r   r   r	   zo--Zliner   scatter      ?errorbar)ZxerrZzerrr   z
lower leftz	My legend)ZlocZncolsZtitle	numpointsNr   )
r   r   r   r   r   r   Zfullr   r   r   )r   r   s     r   
test_fancyr!      s     lldd&;<GCGGBIIbM2772q>2772q>5GOJJryy}biiAr2)JDKKA		"rwwr2s*  6II,a{aIHr   c                  s   RR.RR..p RR.RR..RR.RR...pRR.RR..RR.RR...p\         P                  ! V R^R	7      p\         P                  ! VR
R7      p\         P                  ! VRRR	7      p\        P                  ! \	        RR7      R7      w  rgVP                  V4       VP                  V4       VP                  V4       VP                  W4V.. RO4      pVP                  w  rp\        W4V3WV34       F  w  rK  	  R# )r    r   333333?皙?gffffff?g?g?g?z--)
linestylesZlwz-.)r$   Z:r   r   r	   N)r    r   )r      )g333333?r"   )r#   r#   )Zline1Zline2zline 3)	r   ZLine3DCollectionr   r   r   Zadd_collectionr   Zlegend_handlesZzip)Zlines1Zlines2Zlines3Zlc1Zlc2Zlc3r   r   legZh1Zh2Zh3ZohZlhs                 r   !test_linecollection_scaled_dashesr'   )   s    8X"67FRy2r(#r2hR%9:FRy2r(#r2hR%9:F

 
 DQ
?C

 
 D
9C

 
 CB
?Clldd&;<GCccc
))SsO%A
BC##JBBso|4B4r   c                  s    \         P                  ! \        R R7      R7      w  rVP                  ^ ^.^ ^.RR7       \        P
                  ! ^ .^ .^ .RR7      .pVP                  VR.^R7      pR# )r   r   r	   Zv)ZmarkerZAardvark)r    N)r   r   r   r   r   ZLine3Dr   )r   r   Zhandlesr&   s       r   test_handlerline3dr(   =   sd    lldd&;<GCJJ1v1vcJ*||QC!qc#67G
))Gj\Q)
7Cr   c            	      s    \         P                  R,          w  rW,          p. ROp\        P                  ! \	        RR7      R7      w  rEVP                  WV. R	OVRR7      pVP                  4       w  rxR# )
r%   
   Nr   r   r	   bothZlevelscolorsZextendNr)   r)   )bluez#00FF00redr*   i   i2   )r   mgridr   r   r   Zcontourlegend_elements)	r   r
   hr-   r   r   csartistslabels	            r   test_contour_legend_elementsr9   F   s]    88JDA	A'Flldd&;<GC	A!L	OB((*OGVr   c            	      sv   \         P                  R	,          w  rW,          p\        P                  ! \	        RR7      R7      w  r4VP                  WV. R
O. RORR7      pVP                  P                  R4       VP                  P                  R4       VP                  4        VP                  4       w  rgRpR# )r)   r   r   r	   r+   r,   r0   r/   Nr.   r1   )#FFFF00#FF00FFz#00FFFF)r/   r:   r;   r0   )r   r2   r   r   r   ZcontourfZcmapZset_overZ	set_underZchangedr3   )	r   r
   r4   r   r   r5   r6   r7   Zexpected_colorsr8   r   test_contourf_legend_elementsr<   U   s    88JDA	Alldd&;<GC	Q1\=" 
 
$B GGUGGfJJL((*OG
 <Or   c                  s   \         P                  ! . RO. R	O. R
O.4      p \        P                  ! V .RR7      p\        P
                  ! RR/R7      w  r#VP                  R4       VP                  V4      pVP                  4       pR# )r    Zsurfacer   r   r   r	   ZkN)r    r    r    )r    r%   r%   )r%   r    r%   )	r   Zasarrayr   ZPoly3DCollectionr   r   Zset_edgecolorZadd_collection3dr   )ZvertsZmeshr   r   Zhandler&   s         r   test_legend_Poly3dCollectionr=   k   si    JJ	9i89E!!5';Dll|T&:;GCs  &F
))+Cr   )ZplatformZnumpyr   Z
matplotlibZmplZmatplotlib.colorsr   Zmatplotlib.testing.decoratorsr   Zmatplotlib.pyplotZpyplotr   Zmpl_toolkits.mplot3dr   r   r   Zmachiner!   r'   r(   r9   r<   r=   ) r   r   <module>r>      s       ( :  & $%4wG H #$$gF. G. ;-T#++-9auFIFI:(I1:,
-r   