+
     ]i~G  c                   s   ^ RI t^ RIHt ^ RIt^ RIt^ RIHt ^ RI	H
t
Ht ]
! R.RRR7      R	 4       t]
! R
.RRRR7      R 4       t]
! R.4      R 4       tR t]! R.R7      R 4       t]! R.R7      R 4       t]! R.R7      R 4       t]
! R.RR7      R 4       t]
! R.RR7      R 4       t]
! R.RR7      R 4       t]
! R.RR7      R 4       t]
! R .RR7      R! 4       t]
! R".RR7      R# 4       t]
! R$.RR7      R% 4       t]
! R&.R'R7      R( 4       t]
! R).RR7      R* 4       t]! R.R7      R+ 4       t]! R.R7      R, 4       tR- tR. tR/ t R0 t!R1 t"R2 t#]! R.R7      R3 4       t$]! R.R7      R4 4       t%R5 t&R6 t'R7 t(R8 t)]! R.R7      R9 4       t*R: t+R; t,R< t-R= t.]
! R>.RR7      R? 4       t/]! 4       R@ 4       t0RA t1]Pd                  Pg                  RBRCRD.4      ]
! RE.RR'RF7      RG 4       4       t4R# )H    N)assert_allclose)pyplot)image_comparisoncheck_figures_equalzpolar_axes.pngZdefaultg~jt?)styletolc                  s   \         P                  ! R RR4      p R\         P                  ,          V ,          p\        P                  ! 4       pVP                  RR7      pVP                  WR^R7      w  pVP                  RRR^R7      w  pRpW,          W,          rvVP                  V.V.R	4       VP                  R
Wv3RR\        RRR7      RRR7       VP                  RRRRR7       R# )              ?MbP?Tpolarz#ee8d18)ZcolorZlwz#0000ff   oza polar annotation皙?zfigure fractionblack	facecolorZshrinkleftbaseline)xyxytext
textcoords
arrowpropshorizontalalignmentverticalalignmentxout)Zaxistick1Ontick2On	directionN      @r    r    )r       )r   r   )
nparangepipltfigureadd_subplotplotannotatedicttick_params)rthetafigaxZlineZindZthisrZ	thisthetas           B/usr/lib64/python3.14/site-packages/matplotlib/tests/test_polar.pytest_polar_annotationsr1   
   s     			#sE"A!E
**,C	t	$BGGEI!G4EDGGFF)G:ED
Cvuz9GGYK%#&KK$%#,'$?$*",   NNT45NI    zpolar_coords.pngTgy&1?)r   remove_textr   c                  s   \         P                  P                  R^
^RRR7      p \        P                  ! 4       pVP                  RR7      pVP                  V 4       V P                  VP                  4       VP                  R\        P                  R,          R3\        P                  ^,          R	3R
R
\        RRR7      RRRR7	       VP                  R^4       VP                  R^4       R# )r    r,         ?)r   alphaZequal)Zaspectzthe top       @      $@g      4@r   r   r   r   r   r   T)r   r   Zxycoordsr   r   r   r   Zclip_onNr    i)mplZpatchesZEllipser%   r&   r'   Z
add_artistZset_clip_boxZbboxr)   r"   r$   r*   Zset_xlimset_ylim)Zelr.   r/         r0   test_polar_coord_annotationsr;   ,   s     
		VRs#		FB
**,C		(BMM"OOBGGKK	EE"Hc?a~ "'$?$*",  	 KKRKKRr2   zpolar_alignment.pngc                  s   \         P                  ! ^ R^Z4      p . ROp\        P                  ! 4       p. ROpVP	                  VRRR7      pVP                  V 4       VP	                  VRRR7      pVP                  P                  R4       \        ^4       F/  pVP                  V,          P                  WV,          RRR	7       K1  	  R
# )r    ih  T
horizontal)r   ZlabelverticalFr   top)Zangler   r   N)r    皙?皙?g333333?皙?r!   皙?rC   rA   rA   )r"   r#   r%   r&   add_axesZset_thetagridsZpatchZset_visibleZrangeZaxesZ
set_rgrids)ZanglesZgrid_valuesr.   Zrectr<   r=   is          r0   test_polar_alignmentrF   I   s     YYq#r"F,K
**,CDd$lCJf%||DJ|?HNNu%1Xay &% 	 	A r2   c                  s    \         P                  ! 4       p \         P                  ! ^^.RR.4       \         P                  ! ^^.RR.4       R# )r!   rC   r?   g333333?r@   N)r%   r&   r   )r.       r0   test_polar_twicerH   ^   s9    
**,CIIq!fr2hIIq!fr2hr2   Zpng)Z
extensionsc                 s   V P                  R R7      pVP                  \        P                  ! ^R.4      RR.4       VP                  \        P                  ! ^R.4      RR.4       VP                  R R7      pVP                  \        P                  ! ^^.4      RR.4       VP                  \        P                  ! ^R.4      RR.4       R# )r   
projectionr?   rC   if  NiM)r'   r(   r"   deg2radfig_testfig_refr/      && r0   test_polar_wraprQ   e   s    					1BGGBJJT{#c3Z0GGBJJ2w#s,					0BGGBJJSz"S#J/GGBJJ3x 3*-r2   c                 s   ^ RI Hu Hp VP                  4        . ROp. ROp\        P
                  ! V P                  4       \        P                  ! V Uu. uF  qUVP                  ,          NK  	  upV4       VP                  RR7      pVP                  \        P                  ! V4      V4       VP                  RR7       R# u upi )r    Nr   rI   deg)xlabelg      >@g     F@g      N@     V@r   r6         @r   )matplotlib.testing.jpl_unitstesting	jpl_unitsregisterr%   r&   numberr   rR   r'   r(   r"   rL   set)rN   rO   unitsxsysr   r/   s   &&     r0   test_polar_units_1ra   o   s    00	NN	!B	BJJxIIb)b599}}b)2.					0BGGBJJrNBFF%F	 *s   Cc                 sl   ^ RI Hu Hp VP                  4        . R	OpV Uu. uF  qDVP                  ,          NK  	  pp. R
OpV Uu. uF  qwVP
                  ,          NK  	  pp\        P                  ! V P                  4       \        P                  ! WXRRR7       VP                  RR7      p	V	P                  \        P                  ! V4      V4       V	P                  P                  \         P"                  P%                  RP&                  4      4       V	P)                  RRR7       R# u upi u upi )r    NZradkm)Z
thetaunitsZrunitsr   rI   z{:.12})rS   ZylabelrT   rV   )rX   rY   rZ   r[   rR   rb   r%   r&   r\   r   r'   r(   r"   rL   xaxisZset_major_formatterr8   ZtickerZFuncFormatterZformatr]   )
rN   rO   r^   r_   r   Zxs_degr`   ZyZys_kmr/   s
   &&        r0   test_polar_units_2rd   ~   s    00	NN	!B%'(R%))mmRF(	B#%&2a\\2E&JJxIIfd; 
				0BGGBJJrNBHH  !9!9(//!JKFF%F% )&s   D,D1zpolar_rmin.png)r   c                  s,   \         P                  ! ^ RR4      p ^\         P                  ,          V ,          p\        P                  ! 4       pVP                  . RORR7      pVP                  W4       VP                  R4       VP                  R4       R# )	r    rW   {Gz?Tr
   r6   r4   NrB   	r"   r#   r$   r%   r&   rD   r(   set_rmaxset_rminr,   r-   r.   r/          r0   test_polar_rminrk      sg    
		!S$AbeeGAIE
**,C	*$	7BGGEKKKKr2   zpolar_negative_rmin.pngc                  s,   \         P                  ! RRR4      p ^\         P                  ,          V ,          p\        P                  ! 4       pVP                  . RORR7      pVP                  W4       VP                  R4       VP                  R4       R# )rW   r   re   Tr
   Ng      rB   rf   ri   rj   r0   test_polar_negative_rminrl      sg    
		$T"AbeeGAIE
**,C	*$	7BGGEKKKKr2   zpolar_rorigin.pngc                  sN   \         P                  ! ^ RR4      p ^\         P                  ,          V ,          p\        P                  ! 4       pVP                  . R	ORR7      pVP                  W4       VP                  R4       VP                  R4       VP                  R4       R# )
r    rW   re   Tr
   r6   r4   r   NrB   )
r"   r#   r$   r%   r&   rD   r(   rg   rh   set_roriginri   rj   r0   test_polar_roriginrn      ss    
		!S$AbeeGAIE
**,C	*$	7BGGEKKKKNN3r2   zpolar_invertedylim.pngc                  s~    \         P                  ! 4       p V P                  . RORR7      pVP                  ^^ 4       R# )rC   Tr
   NrB   )r%   r&   rD   r9   r.   r/        r0   test_polar_invertedylimrq      s.    
**,C	*$	7BKK1r2   zpolar_invertedylim_rorigin.pngc                  s   \         P                  ! 4       p V P                  . RORR7      pVP                  P	                  R4       VP                  ^ ^ .^ ^.RR7       VP                  ^ 4       VP                  ^4       R# )rC   Tr
   none)cNrB   )r%   r&   rD   yaxisZset_invertedr(   Zmarginsrm   ro   rp   r0   test_polar_invertedylim_roriginru      se    
**,C	*$	7BHH$ GGQFQFfG%JJqMNN1r2   zpolar_theta_position.pngc                  s.   \         P                  ! ^ RR4      p ^\         P                  ,          V ,          p\        P                  ! 4       pVP                  . RORR7      pVP                  W4       VP                  R^4       VP                  R4       R# )	r    rW   re   Tr
   ZNW	clockwiseNrB   )	r"   r#   r$   r%   r&   rD   r(   set_theta_zero_locationset_theta_directionri   rj   r0   test_polar_theta_positionry      sm    
		!S$AbeeGAIE
**,C	*$	7BGGEtR(;'r2   zpolar_rlabel_position.pngc                  s    \         P                  ! 4       p V P                  R R7      pVP                  R4       VP	                  RR7       R# )r   rI   i;  auto)rotationN)r%   r&   r'   Zset_rlabel_positionr+   ro   rp   r0   test_polar_rlabel_positionr|      s9    
**,C	G	,B3NNFN#r2   zpolar_title_position.pngZmpl20c                  sv    \         P                  ! 4       p V P                  R R7      pVP                  R4       R# )r   rI   ZfooN)r%   r&   r'   Z	set_titlero   rp   r0   test_polar_title_positionr}      s)    
**,C	G	,BLLr2   zpolar_theta_wedge.pngc                  st   \         P                  ! ^ RR4      p ^\         P                  ,          V ,          p\         P                  ! RRR4      p\         P                  ! RRR4      pRp\        P                  ! \        V4      \        V4      RR/RR	7      w  rV\        V4       EF  w  rx\        V4       F  w  rWgV	3,          pVP                  W4       W8  d$   VP                  V4       VP                  V
4       M3VP                  V
4       VP                  V4       VP                  R
4       VP                  RRWG\        V4      ,          ,          RR7       VP                  P                  RRR7       VP                  P                  4       P                   P#                  . ROR7       K  	  EK  	  R# )r    rW   re   g      .@g     v@rU   g      I@r   T)
subplot_kwfigsizerv   rz   )r   r   r   r{   )Zlabel2Onr{   )ZstepsN)r   ZinZinout)i   i   )r!      g      @   i
   )r"   r#   r$   r%   subplotsZlenZ	enumerater(   Zset_thetaminZset_thetamaxrx   r+   rt   Zset_tick_paramsrc   Zget_major_locatorZbaseZ
set_params)r,   r-   Z
theta_minsZ
theta_maxsZ
DIRECTIONSr.   axsrE   ZstartZjZendr/   s               r0   test_polar_theta_limitsr      s]   
		!S$AbeeGAIE4-J4-J'J||C
OS_(/$*,HC j)
+FATBGGE{&$ $&&&{3NN4%/C
O0C%D$*  , HH$$dV$DHH&&(--88( 9 * , *r2   c                 s    V P                  R R/R7      pVP                  ^
R7       VP                  RR7       VP                  R R/R7      pVP                  R4       VP                  R4       R# )r   Tr~   )r>   r4   Zbottomr7   Nr   set_rlimrg   rh   rM   rP   r0   test_polar_rlimr     sc    			wo		6BKKBKKKrK			gt_		5BKKKKOr2   c                 s    V P                  R R/R7      pVP                  R^
.R7       VP                  R R/R7      pVP                  R4       VP                  R4       R# )r   Tr   r4   r   r7   Nr   rM   rP   r0   test_polar_rlim_bottomr     sY    			wo		6BKKBxK 			gt_		5BKKKKOr2   c                  s    \         P                  ! 4       P                  R R7      p V P                  \        P
                  ! ^
4      \        P
                  ! ^
4      R,           4       R# )r   rI   re   N)r%   r&   r'   r(   r"   r#   r/   rG   r0   test_polar_rlim_zeror     s>    		!	!W	!	5BGGBIIbM299R=3./r2   c                  s    \         P                  ! R R7       \         P                  ! 4       p \         P                  ! R4       \         P                  ! 4        \         P                  ! 4       p R# )r   rI   ZallN)r%   subplotgcaZcloser   r   rG   r0   test_polar_no_datar   "  s9    KK7#	BIIeIIK	Br2   c                  s    \         P                  ! R R7       \         P                  ! 4       p V P                  R4       R# )r   rI   logN)r%   r   r   
set_rscaler   rG   r0   test_polar_default_log_limsr   -  s%    KK7#	BMM%r2   c                  s    \         P                  ! 4       P                  R R7      p \        P                  ! \
        4      ;_uu_ 4        V P                  R4       RRR4       R#   + '       g   i     R# ; i)r   rI   ZdatalimN)r%   r&   r'   pytestraises
ValueErrorZset_adjustabler   rG   r0   !test_polar_not_datalim_adjustabler   4  sG    		!	!W	!	5B	z	"	"
)$ 
#	"	"	"s   A$$A5	c                  s   \         P                  ! 4       p V P                  R R7      pVP                  RR7       \         P                  ! VP
                  P                  4       RR7       V P                  P                  4        R# )Tr
   r?   )r5   F)ZvisibleN)	r%   r&   r'   ZgridZsetprt   get_ticklabelscanvasdrawro   rp   r0   test_polar_gridlinesr   :  sT    
**,C	t	$BGG#GHHRXX$$&6JJOOr2   c                  s    \         P                  ! R R/R7      w  rV P                  P                  4        VP	                  V P                  P                  4       4      p\        VP                  . RO^R7       R# )rJ   r   r   )ZrtolN)gyZ@g,ԚG=@g_)Gހ@gR!+|@)r%   r   r   r   Zget_tightbboxZget_rendererr   Zextents)r.   r/   Zbbr:   r0   test_get_tightbbox_polarr   F  sW    ll|W&=>GCJJOO			#**113	4B


<1Fr2   c                 s   V P                  ^yRR7      P                  ^ .^.^\        P                  ,          RRR7      pV P                  ^zRR7      P                  ^ .^.R\        P                  ,          RRR7      pVP                  ^yRR7      P                  ^ .^.^\        P                  ,          RRR7      pVP                  ^zRR7      P                  ^ .^.R\        P                  ,          RRR7      pR# )	iy   r   rI   rr   F)Z	edgecolorZantialiasedNrK   )r'   Zbarr"   r$   )rN   rO   Zp1Zp2Zp3Zp4s   &&    r0   )test_polar_interpolation_steps_constant_rr   N  s     

sw

73sQC255F3F 


sw

73sQCBEEV3G 


cg

63sQC255F3F 


cg

63sQCBEEV3G r2   c                 sp   V P                  R R7      P                  ^ \        P                  ^,          .^^.4      w  p^dVP	                  4       n        VP                  R R7      P                  \        P                  ! ^ \        P                  ^,          ^e4      \        P                  ! ^^^e4      4       R# r   rI   N)r'   r(   r"   r$   Zget_pathZ_interpolation_stepslinspace)rN   rO   lrP   r0   )test_polar_interpolation_steps_variable_rr   \  s    					1	6	62557|aV	LBA(+AJJL%7+00
AruuQw$bkk!Q&<>r2   c                  s   \         P                  ! R R7      p V P                  ^ ^\        P                  ,          4       V P                  RRR7       \
        P                  ! \        RR7      ;_uu_ 4        V P                  ^ ^\        P                  ,          4       RRR4       \
        P                  ! \        RR7      ;_uu_ 4        V P                  RRR7       RRR4       R#   + '       g   i     LR; i  + '       g   i     R# ; i)	r   rI   r   i  )ZthetaminZthetamaxz+angle range must be less than a full circle)ZmatchNi  )r%   r   set_thetalimr"   r$   r   r   r   r   rG   r0   test_thetalim_valid_invalidr   d  s    		(BOOAq255y!OOS3O/	zJ
L 
L
1ruu9%
L 
zJ
L 
L
s3
L 
L
L 
L
L 
L 
Ls   6(C(
C;(C8	;D	c                  sz    \         P                  ! R R7      p V P                  ^ ^4       V P                  R4       R# )r   rI   N)r      )r%   r   r   r   rG   r0   test_thetalim_argsr   p  s*    		(BOOAqOOFr2   c                  sR   \         P                  ! R RR/R7      w  rVP                  4        F#  pVP                  ^ \        P
                  4       K%  	  VP                  4        F?  p\        P                  ! VP                  P                  4       4      P                  4       pKA  	  R# )zAAAABB.rJ   r   r   N)
r%   subplot_mosaicZvaluesr   r"   r$   Zdegreesrc   Zget_majorticklocsZtolist)r.   r   r/   Zticklocsrj   r0   test_default_thetalocatorr   x  sv     !!|W57HCjjl
255! jjl::bhh88:;BBD r2   c                  s    \         P                  ! R R7      p V P                  ^ \        P                  ^,          4      pR# r   )r%   r   axvspanr"   r$   )r/   Zspanrp   r0   test_axvspanr     s(    		(B::aq!Dr2   c                 s
   V P                  ^^RRR/R7      pR F$  pVP                  V,          P                  4        K&  	  VP                  ^^RRR/R7      pR F$  pVP                  V,          P                  4        K&  	  R# )r   TrJ   r   )sharexr~   )shareyr~   N)r    r!   r   )r   ZflatZremove)rO   rN   r   rE   s   &&  r0   test_remove_shared_polarr     s    
 

	1T|W&=  ?C 


	1T|W&=  ?C r2   c                  s    \         P                  ! ^^RR/RRR7      w  rV P                  P                  4        \         P                  ! RRR/RRR7      w  rV P                  P                  4        R# )r   rJ   r   T)r~   r   r   zab
cdN)r%   r   r   r   r   )r.   r   rp   r0   "test_shared_polar_keeps_ticklabelsr     sb    ||	1,0dLHCJJOO !!lG4T$PHCJJOOr2   c                  s    \         P                  ! R R7      p V P                  ^ ^4       V P                  R4       V P	                  RR.4       R# )r   rI   r4   rC   r?   N)r%   r   r   Zaxvliner(   r   rG   r0   (test_axvline_axvspan_do_not_modify_rlimsr     s9    		(BJJq!JJrNGGRHr2   c                  s4    \         P                  ! R R7      p R# r   )r%   r   r   rG   r0   test_cursor_precisionr     s    		(Br2   c                  s    \         P                  ! R R7      p R pRV n        Wn        Wn        RV n        Wn        Wn        R# )r   rI   c                 s"    R V R,          ,          # )z$%1.1fMgư> )r   s   &r0   millionsZ&test_custom_fmt_data.<locals>.millions  s    AdF##r2   N)r%   r   Z	fmt_xdataZ	fmt_ydata)r/   r   rp   r0   test_custom_fmt_datar     s=    		(B$ BLL LBL LLr2   zpolar_log.pngc                  sD   \         P                  ! 4       p V P                  R R7      pVP                  R4       VP	                  ^R4       ^dpVP                  \        P                  ! ^ ^\        P                  ,          V4      \        P                  ! ^ ^V4      4       R# )Tr
   r   i  N)
r%   r&   r'   r   r   r(   r"   r   r$   logspace)r.   r/   Znr:   r0   test_polar_logr     sl    
**,C	t	$BMM%KK4AGGBKK1ruu9a("++aA*>?r2   c                 s   V P                  R RR7      pVP                  ^ ^4       VP                  R4       VP                  \        P
                  ! ^ ^^4      4       VP                  R RR7      pVP                  R4       VP                  ^^d4       VP                  R4       VP                  \        P                  ! ^ ^^4      4       W#3 F  pVP                  RR7       K  	  R# )	r   Zred)rJ   r   r   F)Z	labelleftNr   r	   )	r'   r   rm   Z
set_rticksr"   r   r   r   r+   )rO   rN   Zax_refZax_testr/   s   &&   r0   test_polar_log_roriginr     s       Gu EF
OOAq
r
bkk!Q*+""g"GGuQr{{1a+,o
' r2   c                  s(   \         P                  ! 4       p V P                  R R7      pVP                  \        P
                  ) \        P
                  4       VP                  P                  4        Uu. uF  q"P                  4       NK  	  ppR# u upi r   )	r%   r&   r'   r   r"   r$   rc   r   Zget_text)r.   r/   r   Zlabelsrj   r0   test_polar_neg_theta_limsr     sa    
**,C	G	,BOORUUFBEE"$&HH$;$;$=>$=qjjl$=F>F>s   3BorderbeforeZafterzpolar_errorbar.png)Zbaseline_imagesr3   r   c           
      s   \         P                  ! ^ ^\         P                  ,          \         P                  ^,          4      pV\         P                  ,          ^,          R,           p\        P                  ! RR7      pVP                  RR7      pV R8X  d<   VP                  R4       VP                  R4       VP                  WRR^RR	R
7       R# VP                  WRR^RR	R
7       VP                  R4       VP                  R4       R# )r    r4   )r   r   rI   r   ZNrC   r   Zseagreen)ZxerrZyerrZcapsizeZfmtrs   N)r   r   i)	r"   r#   r$   r%   r&   r'   rw   rx   Zerrorbar)r   r-   r,   r.   r/   s   &    r0   test_polar_errorbarr     s     IIaRUUBEEAI.ECA
**V
$C	G	,B
""3'
r"
E3S!
S
E3S!
S
""3'
r"r2   )5Znumpyr"   Znumpy.testingr   r   Z
matplotlibr8   r   r%   Zmatplotlib.testing.decoratorsr   r   r1   r;   rF   rH   rQ   ra   rd   rk   rl   rn   rq   ru   ry   r|   r}   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   ZmarkZparametrizer   r   r2   r0   <module>r      sF    )   $ O #$I5AJ BJB %&iT6 ()*A +A(C (. ). ( ) (& )&( #$I6 7 ,-Y? @ &'y9	 :	 +,I> ? 34IF G -.i@( A( ./yA$ B$ -.g> ? *+9=* >*@ ( ) ( )!5%	=F (
I )
I (> )>	4O24 ( )
6$DP6 ?#95@ 6@ ( (&\ 8W"56#7"8d!#! 7#r2   