+
    ,i                     
   ^ 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.pngTmpl20)remove_textstylec                  
   \         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
subplot_kwoyzz=1)zdirlabelzz=-1N)pltsubplotsdictnparangeplotlegend)figaxxs      J/usr/lib/python3/dist-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                  (   \         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   edgem)r   aligncolorNr   gupdown)r   r   r   r   r   barr   )r   r   r   b1b2s        r   test_legend_barr,      sv    lldd&;<GC
		"A	3fC	8B	TrT7F#	>BIIr!ubentVn-r   z	fancy.pngx86_64gI+?)r   r   tolc            	      D   \         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--liner   scatter      ?errorbar)xerrzerrr   z
lower leftz	My legend)locncolstitle	numpointsNr(   )
r   r   r   r   r   r   fullr2   r4   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                  b   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  rVP                  4       ^ ,          VP                  8X  d   K-  Q h	  R# )r   r3   333333?皙?gffffff?g?g?g?z--)
linestyleslwz-.)r@   :r
   r   r   N)r   r3   )r3      )g333333?r>   )r?   r?   )line1line2zline 3)r   Line3DCollectionr   r   r   add_collectionr   legend_handleszipget_linestyles_dash_pattern)lines1lines2lines3lc1lc2lc3r   r   legh1h2h3ohlhs                 r   !test_linecollection_scaled_dashesrX   )   s8    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  "1%)9)9999 5r   c                  \   \         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V^ ,          P                  4       VP                  ^ ,          P                  4       8X  g   Q hR# )r
   r   r   v)markerAardvark)r:   N)	r   r   r   r2   r   Line3Dr   
get_markerrH   )r   r   handlesrR   s       r   test_handlerline3dr`   =   s    lldd&;<GCJJ1v1vcJ*||QC!qc#67G
))Gj\Q)
7C1:  "c&8&8&;&F&F&HHHHr   c            	         \         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  rxV. RO8X  g   Q h\        ;QJ d    R V 4       F  '       d   K   RM	  RM! R V 4       4      '       g   Q h\        ;QJ d%    R	 \        Ws4       4       F  '       d   K   RM	  RM! R	 \        Ws4       4       4      '       g   Q hR
# )rC   
   Nr
   r   r   bothlevelscolorsextendc              3   j   "   T F)  p\        V\        P                  P                  4      x  K+  	  R # 5iN)
isinstancempllinesLine2D.0as   & r   	<genexpr>/test_contour_legend_elements.<locals>.<genexpr>P   s$     @1z!SYY--..   13FTc              3   Z   "   T F!  w  r\        VP                  4       V4      x  K#  	  R # 5irj   )r   	get_colorrp   rq   cs   &  r   rr   rs   Q   s)      1/41 !++-++/   )+Nrb   rb   )bluez#00FF00redrc      2   )z
$x = 10.0$z
$x = 30.0$z
$x = 50.0$)	r   mgridr   r   r   contourlegend_elementsallrI   )	r   r   hrg   r   r   csartistslabelss	            r   test_contour_legend_elementsr   F   s    88JDA	A'Flldd&;<GC	A!L	OB((*OG????3@@333@@@@@@3 1w/1333 1w/1 1 1 1 1r   c            	         \         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  rgV. RO8X  g   Q hRp\        ;QJ d    R V 4       F  '       d   K   R	M	  R
M! R V 4       4      '       g   Q h\        ;QJ d%    R \        Wh4       4       F  '       d   K   R	M	  R
M! R \        Wh4       4       4      '       g   Q hR# )rb   r
   r   r   rd   re   r|   r{   c              3   j   "   T F)  p\        V\        P                  P                  4      x  K+  	  R # 5irj   )rk   rl   patches	Rectanglero   s   & r   rr   0test_contourf_legend_elements.<locals>.<genexpr>f   s$     EWz!S[[2233Wrt   FTc              3   Z   "   T F!  w  r\        VP                  4       V4      x  K#  	  R # 5irj   )r   get_facecolorrw   s   &  r   rr   r   g   s*      :841 !//+Q//8ry   Nrz   r}   )#FFFF00#FF00FFz#00FFFF)z$x \leq -1e+250s$z$10.0 < x \leq 30.0$z$30.0 < x \leq 50.0$z$x > 1e+250s$)r{   r   r   r|   )r   r   r   r   r   contourfcmapset_over	set_underchangedr   r   rI   )	r   r   r   r   r   r   r   r   expected_colorss	            r   test_contourf_legend_elementsr   U   s   88JDA	Alldd&;<GC	Q1\=" 
 
$B GGUGGfJJL((*OG ' ' ' ' <O3EWE333EWEEEEE3 :w8:333 :w8: : : : :r   c                     \         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VP                  ^ ,          P                  4       VP                  4       8H  P                  4       '       g   Q hR# )r   surfacer1   r   r
   r   kN)r   r   r   )r   rC   rC   )rC   r   rC   )r   asarrayr   Poly3DCollectionr   r   set_edgecoloradd_collection3dr   rH   r   r   )vertsmeshr   r   handlerR   s         r   test_legend_Poly3dCollectionr   k   s    JJ	9i89E!!5';Dll|T&:;GCs  &F
))+Cq!//1##%&'*su- - -r   )platformnumpyr   
matplotlibrl   matplotlib.colorsr   matplotlib.testing.decoratorsr   matplotlib.pyplotpyplotr   mpl_toolkits.mplot3dr   r   r,   machiner<   rX   r`   r   r   r    r   r   <module>r      s       ( :  & $%4wG H #$$gF. G. ;-T#++-9auFIFI:(I1:,
-r   