
    ^jV                        d dl Z d dlZd dlmZ d dlZd dlZd dlm	Z	 d dlm
Z d dlmZmZ d dlmZ  edgd e j$                         dk(  rd nd	
      d        Z edgdd e j$                         dk(  rd nd      d        Z edgd      d        Zd Z e       d        Z e       d        Z e       d        Z edgd      d        Z edgd      d        Z edgd      d        Z edgd      d         Z ed!gd      d"        Z ed#gd      d$        Z ed%gd      d&        Z  ed'gd      d(        Z! ed)gd      d*        Z" e       d+        Z# e       d,        Z$d- Z%d. Z&d/ Z'd0 Z(d1 Z)ejT                  jW                  d2g d3      d4        Z,d5 Z- e       d6        Z. e       d7        Z/d8 Z0d9 Z1d: Z2d; Z3 e       d<        Z4d= Z5d> Z6d? Z7d@ Z8 edAgd      dB        Z9 e       dC        Z:dD Z;ejT                  jW                  dEdFdGg       edHgddI      dJ               Z<dK Z=dL Z>dM Z?y)N    N)assert_allclose)RadialLocator)pyplot)image_comparisoncheck_figures_equalzpolar_axes.pngdefaultx86_64g;On?)styletolc            
         t        j                  ddd      } dt         j                  z  | z  }t        j                         }|j                  d      }|j                  || dd	      \  }|j                  d
ddd	      \  }d}| |   ||   }}|j                  |g|gd       |j                  d||fddt        dd      dd       |j                  dddd       y )N              ?MbP?      @Tpolarz#ee8d18   )colorlwr   r   r      z#0000ffr      oza polar annotation)皙?r   zfigure fractionblackr   	facecolorshrinkleftbaseline)xyxytext
textcoords
arrowpropshorizontalalignmentverticalalignmentxout)axistick1Ontick2On	direction)
nparangepipltfigureadd_subplotplotannotatedicttick_params)rthetafigaxlineindthisr	thisthetas           f/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/matplotlib/tests/test_polar.pytest_polar_annotationsrA      s     			#sE"A!E
**,C	t	$BGGE1I!G4EDGGFF)G:ED
CvuSz9EGGYK%#&KK$u%#,'$?$*",   NNT45NI    zpolar_coords.pngTg9v?)r
   remove_textr   c                     t         j                  j                  ddddd      } t        j                         }|j                  d      }|j                  |        | j                  |j                         |j                  d	t        j                  d
z  dft        j                  dz  dfddt        dd      ddd	       |j                  dd       |j                  dd       y )Nr   
      r8         ?)r   alphaequal)aspectzthe top       @      $@r   g      4@r   r   r   r   r    r!   T)r"   r#   xycoordsr$   r%   r&   r'   clip_oni)mplpatchesEllipser1   r2   r3   
add_artistset_clip_boxbboxr5   r.   r0   r6   set_xlimset_ylim)elr:   r;   s      r@   test_polar_coord_annotationsrX   1   s     
		VRs#		FB
**,C		(BMM"OOBGGKK	EE"Hc?a~ "'$?$*",  	 KKRKKRrB   zpolar_alignment.pngmpl20)r
   c                  |   t        j                  ddd      } g d}t        j                         }g d}|j	                  |dd      }|j                  |        |j	                  |dd	      }|j                  j                  d
       t        d      D ]'  }|j                  |   j                  || |   dd       ) y )Nr   ih  Z   )r   皙?皙?g333333?皙?r   皙?r`   r^   r^   T
horizontal)r   labelverticalF   r    top)angler&   r'   )r.   r/   r1   r2   add_axesset_thetagridspatchset_visiblerangeaxes
set_rgrids)anglesgrid_valuesr:   rectra   rc   is          r@   test_polar_alignmentrr   N   s     YYq#r"F,K
**,CDd$lCJf%||DJ|?HNNu%1X Avay &% 	 	AArB   c                      t        j                         } t        j                  ddgddg       t        j                  ddgddg       t        | j                        dk(  sJ d	       y )
Nr   rd   r`   r\   r      g333333?r]   z!More than one polar Axes created.)r1   r2   r   lenrl   )r:   s    r@   test_polar_twicerv   c   sU    
**,CIIq!fr2hIIq!fr2hsxx=ABBBrB   c                    | j                  d      }|j                  t        j                  ddg      ddg       |j                  t        j                  ddg      ddg       |j                  d      }|j                  t        j                  dd	g      ddg       |j                  t        j                  dd
g      ddg       y )Nr   
projection   iMr\   r`   rd      if  )r3   r4   r.   deg2radfig_testfig_refr;   s      r@   test_polar_wrapr   j   s    					1BGGBJJT{#c3Z0GGBJJ2w#s,					0BGGBJJSz"S#J/GGBJJ3x 3*-rB   c                 n   dd l mc m} |j                          g d}g d}t	        j
                  |        t	        j                  |D cg c]  }||j                  z   c}|       |j                  d      }|j                  t        j                  |      |       |j                  d       y c c}w )Nr   g      >@g     F@g      N@     V@r   rK         @r   r   rx   deg)xlabel)matplotlib.testing.jpl_unitstesting	jpl_unitsregisterr1   r2   r   r   r3   r4   r.   r}   set)r   r   unitsxsysr(   r;   s          r@   test_polar_units_1r   t   s    00	NN	!B	BJJxIIb)q599})2.					0BGGBJJrNBFF%F	 *s   
B2c                    dd l mc m} |j                          g d}|D cg c]  }||j                  z   }}g d}|D cg c]  }||j
                  z   }}t        j                  |        t        j                  ||dd       t        t        j                         j                  j                         |j                        sJ |j                  d      }	|	j                  t!        j"                  |      |       |	j                  j%                  t&        j(                  j+                  d	j,                               |	j/                  dd
       y c c}w c c}w )Nr   r   r   radkm)
thetaunitsrunitsr   rx   z{:.12})r   ylabel)r   r   r   r   r   r   r1   r2   r   
isinstancegcaxaxisget_major_formatterUnitDblFormatterr3   r4   r.   r}   set_major_formatterrO   tickerFuncFormatterformatr   )
r   r   r   r   r(   xs_degr   yys_kmr;   s
             r@   test_polar_units_2r      s   00	NN	!B%'(a%))m(F(	B#%&aQ\&E&JJxIIfed;cggioo99;,,. . . 
				0BGGBJJrNBHH  !9!9(//!JKFF%F% )&s   EEzpolar_rmin.pngc                     t        j                  ddd      } dt         j                  z  | z  }t        j                         }|j                  dd      }|j                  ||        |j                  d       |j                  d	       y )
Nr   r   {Gz?rd   r_   Tr   rK   rG   	r.   r/   r0   r1   r2   rg   r4   set_rmaxset_rminr8   r9   r:   r;   s       r@   test_polar_rminr      si    
		!S$AbeeGAIE
**,C	*$	7BGGE1KKKKrB   zpolar_negative_rmin.pngc                     t        j                  ddd      } dt         j                  z  | z  }t        j                         }|j                  dd      }|j                  ||        |j                  d       |j                  d       y )Ng      r   r   rd   r_   Tr   r   r   s       r@   test_polar_negative_rminr      si    
		$T"AbeeGAIE
**,C	*$	7BGGE1KKKKrB   zpolar_rorigin.pngc                  6   t        j                  ddd      } dt         j                  z  | z  }t        j                         }|j                  dd      }|j                  ||        |j                  d       |j                  d	       |j                  d
       y )Nr   r   r   rd   r_   Tr   rK   rG   r   )
r.   r/   r0   r1   r2   rg   r4   r   r   set_roriginr   s       r@   test_polar_roriginr      su    
		!S$AbeeGAIE
**,C	*$	7BGGE1KKKKNN3rB   zpolar_invertedylim.pngc                  v    t        j                         } | j                  dd      }|j                  dd       y )Nr_   Tr   rd   r   )r1   r2   rg   rV   r:   r;   s     r@   test_polar_invertedylimr      s.    
**,C	*$	7BKK1rB   zpolar_invertedylim_rorigin.pngc                      t        j                         } | j                  dd      }|j                  j	                  d       |j                  ddgddgd       |j                  d       |j                  d       y )	Nr_   Tr   r   rd   none)cr   )r1   r2   rg   yaxisset_invertedr4   marginsr   r   s     r@   test_polar_invertedylim_roriginr      se    
**,C	*$	7BHH$ GGQFQFfG%JJqMNN1rB   zpolar_theta_position.pngc                     t        j                  ddd      } dt         j                  z  | z  }t        j                         }|j                  dd      }|j                  ||        |j                  dd	       |j                  d
       y )Nr   r   r   rd   r_   Tr   NW   	clockwise)	r.   r/   r0   r1   r2   rg   r4   set_theta_zero_locationset_theta_directionr   s       r@   test_polar_theta_positionr      so    
		!S$AbeeGAIE
**,C	*$	7BGGE1tR(;'rB   zpolar_rlabel_position.pngc                      t        j                         } | j                  d      }|j                  d       |j	                  d       y )Nr   rx   i;  auto)rotation)r1   r2   r3   set_rlabel_positionr7   r   s     r@   test_polar_rlabel_positionr      s9    
**,C	G	,B3NNFN#rB   zpolar_title_position.pngc                  r    t        j                         } | j                  d      }|j                  d       y )Nr   rx   foo)r1   r2   r3   	set_titler   s     r@   test_polar_title_positionr      s)    
**,C	G	,BLLrB   zpolar_theta_wedge.pngc                  D   t        j                  ddd      } dt         j                  z  | z  }t        j                  ddd      }t        j                  ddd      }d	}t        j                  t        |      t        |      d
did      \  }}t        |      D ]  \  }}t        |      D ]  \  }	}
|||	f   }|j                  ||        ||
k  r#|j                  |       |j                  |
       n3|j                  |
       |j                  |       |j                  d       |j                  dd||t        |      z     d       |j                  j                  dd       |j                  j                         j                   j#                  g d         y )Nr   r   r   rd   g      .@g     v@r   g      I@)r)   ininoutr   T)      )
subplot_kwfigsizer   r   )r+   r,   r-   r   )label2Onr   )r   rd   g      @   rE   )steps)r.   r/   r0   r1   subplotsru   	enumerater4   set_thetaminset_thetamaxr   r7   r   set_tick_paramsr   get_major_locatorbase
set_params)r8   r9   
theta_mins
theta_maxs
DIRECTIONSr:   axsrq   startjendr;   s               r@   test_polar_theta_limitsr      su   
		!S$AbeeGAIE4-J4-J'J||C
OS_(/$*,HC j) *5
+ 	*FAsQTBGGE1s{&$ $&&&{3NN4%/C
O0C%D$*  , HH$$dV$DHH&&(--88( 9 *	**rB   c                     | j                  ddi      }|j                  d       |j                  d       |j                  ddi      }|j                  d       |j                  d       y )	Nr   Tr   rE   )re   rG   bottomrL   r   set_rlimr   r   r~   s      r@   test_polar_rlimr     sc    			wo		6BKKBKKKrK			gt_		5BKKKKOrB   c                     | j                  ddi      }|j                  ddg       |j                  ddi      }|j                  d       |j                  d       y )Nr   Tr   rG   rE   r   rL   r   r~   s      r@   test_polar_rlim_bottomr     sY    			wo		6BKKBxK 			gt_		5BKKKKOrB   c                      t        j                         j                  d      } | j                  t	        j
                  d      t	        j
                  d      dz          | j                         d   dk(  sJ y )Nr   rx   rE   r   r   )r1   r2   r3   r4   r.   r/   get_ylimr;   s    r@   test_polar_rlim_zeror   !  sW    		!	!W	!	5BGGBIIbM299R=3./;;=q   rB   c                  r   t        j                  d       t        j                         } | j                         dk(  r| j	                         dk(  sJ t        j
                  d       t        j                          t        j                         } | j                         dk(  r| j	                         dk(  sJ y )Nr   rx   r   r   all)r1   subplotr   get_rminget_rmaxcloser   r   s    r@   test_polar_no_datar   '  s~    KK7#	B;;=A"++-1"444IIeIIK	B;;=A"++-1"444"4rB   c                      t        j                  d       t        j                         } | j                  d       | j	                         dkD  sJ y )Nr   rx   logr   )r1   r   r   
set_rscaler   r   s    r@   test_polar_default_log_limsr   2  s9    KK7#	BMM%;;=1rB   c                      t        j                         j                  d      } t        j                  t
              5  | j                  d       d d d        y # 1 sw Y   y xY w)Nr   rx   datalim)r1   r2   r3   pytestraises
ValueErrorset_adjustabler   s    r@   !test_polar_not_datalim_adjustabler  9  sJ    		!	!W	!	5B	z	" %
)$% % %s   AA"c                     t        j                         } | j                  d      }|j                  d       t        j                  |j
                  j                         d       | j                  j                          |j                  j                  d   j                  j                         dk(  sJ |j
                  j                  d   j                  j                         dk(  sJ y )NTr   r\   )rH   F)visibler   )r1   r2   r3   gridsetpr   get_ticklabelscanvasdrawr   
majorTicksgridline	get_alphar   s     r@   test_polar_gridlinesr  ?  s    
**,C	t	$BGG#GHHRXX$$&6JJOO88q!**446"<<<88q!**446"<<<rB   z!theta_zero_location, theta_offset)))NrF   N))r  r   N)NgPERT!?c                 L   t        j                  ddi      \  }}|  |j                  d        |j                  |   ||j	                  |       |j
                  j                          |j                  d   j                         j                  j                         dkD  sJ y )Nry   r   r   r   )r1   r   r   r   set_theta_offsetr	  r
  spinesget_tightbboxsizemin)theta_zero_locationtheta_offsetr:   r;   s       r@   $test_polar_outer_spine_not_collapsedr  K  s     ll|W&=>GC&
r""""$78
L)JJOO 99W++-226681<<<rB   c                      t        j                  ddi      \  } }| j                  j                          |j	                  | j                  j                               }t        |j                  g dd       y )Nry   r   r   )g%[@gꕲq=@g_)݀@g48.|@r   )rtol)r1   r   r	  r
  r  get_rendererr   extents)r:   r;   bbs      r@   test_get_tightbbox_polarr  a  sY    ll|W&=>GCJJOO			#**113	4B


<5JrB   c                    | j                  dd      j                  dgdgdt        j                  z  dd	      }| j                  d
d      j                  dgdgdt        j                  z  dd	      }|j                  dd      j                  dgdgdt        j                  z  dd	      }|j                  d
d      j                  dgdgdt        j                  z  dd	      }y )Ny   r   rx   r   r   r   r   F)	edgecolorantialiasedz   rd   r{   )r3   barr.   r0   )r   r   p1p2p3p4s         r@   )test_polar_interpolation_steps_constant_rr+  i  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 rB   c                 Z   | j                  d      j                  dt        j                  dz  gddg      \  }d|j	                         _        |j                  d      j                  t        j                  dt        j                  dz  d      t        j                  ddd             y )Nr   rx   r   rd   r   d   e   )r3   r4   r.   r0   get_path_interpolation_stepslinspace)r   r   ls      r@   )test_polar_interpolation_steps_variable_rr3  w  s    					1	6	62557|aV	LBA(+AJJL%7+00
AruuQw$bkk!Q&<>rB   c                     t        j                  d      } | j                  ddt        j                  z         | j                  dd       t        j                  t        d	      5  | j                  dd
t        j                  z         d d d        t        j                  t        d	      5  | j                  dd       d d d        y # 1 sw Y   AxY w# 1 sw Y   y xY w)Nr   rx   r   rd   r   i  )thetaminthetamaxz+angle range must be less than a full circle)matchr   i  )r1   r   set_thetalimr.   r0   r   r   r  r   s    r@   test_thetalim_valid_invalidr9    s    		(BOOAq255y!OOS3O/	zJ
L &
1ruu9%& 
zJ
L 4
s34 4& &4 4s   ($C/CCC!c                  z   t        j                  d      } | j                  dd       t        t	        j
                  | j                         | j                         f            dk(  sJ | j                  d       t        t	        j
                  | j                         | j                         f            dk(  sJ y )Nr   rx   r   r   r   )rd   r   )r1   r   r8  tupler.   radiansget_thetaminget_thetamaxr   s    r@   test_thetalim_argsr?    s    		(BOOAqR__.0ABCDNNNOOFR__.0ABCDNNNrB   c                     t        j                  dddi      \  } }|j                         D ]"  }|j                  dt        j
                         $ |j                         D ]o  }t	        j                  |j                  j                               j                         }t        j                  d      |v sJ t        j                  d      |vroJ  y )NzAAAABB.ry   r   r   r   r[   r-  )r1   subplot_mosaicvaluesr8  r.   r0   degreesr   get_majorticklocstolistr   approx)r:   r   r;   ticklocss       r@   test_default_thetalocatorrH    s     !!|W57HCjjl "
255!"jjl 2::bhh88:;BBD}}R H,,,}}S!1112rB   c                      t        j                  d      } | j                  dt        j                  dz        }|j                         j                  dkD  sJ y )Nr   rx   r   rt   r   )r1   r   axvspanr.   r0   r/  r0  )r;   spans     r@   test_axvspanrL    sB    		(B::aq!D==?//!333rB   c                     | j                  dddddi      }dD ]  }|j                  |   j                          ! |j                  dddddi      }dD ]  }|j                  |   j                          ! y )Nrd   Try   r   )sharexr   )r   r   r   )shareyr   )r   flatremove)r   r   r   rq   s       r@   test_remove_shared_polarrR    s    
 

	1T|W&=  ?C 


	1T|W&=  ?C rB   c                  F   t        j                  ddddidd      \  } }| j                  j                          |d   j                  j
                  d   j                         sJ |d   j                  j
                  d   j                         sJ t        j                  dddidd      \  } }| j                  j                          |d	   j                  j
                  d   j                         sJ |d	   j                  j
                  d   j                         sJ y )
Nrd   ry   r   T)r   rN  rO  r   r   zab
cdb)	r1   r   r	  r
  r   r  get_visibler   rA  )r:   r   s     r@   "test_shared_polar_keeps_ticklabelsrV    s    ||	1,0dLHCJJOOt9??%%a(44666t9??%%a(44666!!lG4T$PHCJJOOs8>>$$Q'33555s8>>$$Q'33555rB   c                      t        j                  d      } | j                  dd       | j                  d       | j	                  ddg       | j                         dk(  sJ y )	Nr   rx   r   r   rG   r`   r\   )r   r\   )r1   r   rJ  axvliner4   r   r   s    r@   (test_axvline_axvspan_do_not_modify_rlimsrY    sM    		(BJJq!JJrNGGRH;;=G###rB   c                     t        j                  d      } | j                  dd      dk(  sJ | j                  dd      dk(  sJ | j                  dd      d	k(  sJ | j                  dd      d
k(  sJ | j                  dd      dk(  sJ | j                  dd      dk(  sJ | j                  dd      dk(  sJ | j                  dd      dk(  sJ | j                  dd      dk(  sJ y )Nr   rx   r   {Gzt?u   θ=0.0π (0°), r=0.005r`   u   θ=0.00π (0°), r=0.100r   u   θ=0.000π (0.0°), r=1.000u   θ=0.3π (57°), r=0.005u   θ=0.32π (57°), r=0.100u   θ=0.318π (57.3°), r=1.000rd   u   θ=0.6π (115°), r=0.005u   θ=0.64π (115°), r=0.100u   θ=0.637π (114.6°), r=1.000)r1   r   format_coordr   s    r@   test_cursor_precisionr]    s    		(B??1e$(AAAA??1b!%??????1a $AAAA??1e$(BBBB??1b!%@@@@??1a $BBBB??1e$(CCCC??1b!%AAAA??1a $CCCCrB   c                  (   t        j                  d      } d }d | _        || _        | j	                  dd      dk(  sJ | j	                  dd      d	k(  sJ | j	                  d
d      dk(  sJ || _        d | _        | j	                  dd      dk(  sJ | j	                  dd      dk(  sJ | j	                  dd      dk(  sJ || _        || _        | j	                  dd      dk(  sJ | j	                  dd      dk(  sJ | j	                  dd      dk(  sJ y )Nr   rx   c                     d| dz  z  S )Nz$%1.1fMgư> )r(   s    r@   millionsz&test_custom_fmt_data.<locals>.millions  s    AdF##rB      g    sAu,   θ=3.8197186342π (687.54935416°), r=$20.0Mi  g    >Au-   θ=392.794399551π (70702.9919191°), r=$2.0Mr   r-  u!   θ=0.95493π (171.887°), r=$0.0Mg     jAr   u   θ=$0.2M, r=1.000r`   u   θ=$0.0M, r=0.100g    .Ar[  u   θ=$1.0M, r=0.005g   ZAu   θ=$2.0M, r=$6000.0Mg NgmCl   {  u!   θ=$1000000000000.0M, r=$12891.3Ml   1;Ti 	Bu   θ=$3938980.6M, r=$1107.9M)r1   r   	fmt_xdata	fmt_ydatar\  )r;   ra  s     r@   test_custom_fmt_datare    s/   		(B$ BLBL??2s#'UUUU??4%)XXXX??1c"&IIII BLBL??3"&9999??1b!%8888??3&*==== BLBL??3(,BBBB??4-1TTTT??5,/3OOOOrB   zpolar_log.pngc                  4   t        j                         } | j                  d      }|j                  d       |j	                  dd       d}|j                  t        j                  ddt        j                  z  |      t        j                  dd|             y )	NTr   r   r   i  r-  r   rd   )
r1   r2   r3   r   r   r4   r.   r1  r0   logspace)r:   r;   ns      r@   test_polar_logri    sl    
**,C	t	$BMM%KK4AGGBKK1ruu9a("++aA*>?rB   c                    | j                  dd      }|j                  dd       |j                  d       |j                  t	        j
                  ddd             |j                  dd      }|j                  d       |j                  d	d
       |j                  d       |j                  t	        j                  ddd             ||fD ]  }|j                  d        y )Nr   red)ry   r   r   rd   r%  r   r   r   r-  r   F)	labelleft)	r3   r   r   
set_rticksr.   r1  r   rg  r7   )r   r   ax_refax_testr;   s        r@   test_polar_log_roriginrp     s       Gu EF
OOAq
r
bkk!Q*+""g"GGuQr{{1a+,go (
'(rB   c                  4   t        j                         } | j                  d      }|j                  t        j
                   t        j
                         |j                  j                         D cg c]  }|j                          }}|g dk(  sJ y c c}w )Nr   rx   )u   -180°u   -135°u   -90°u   -45°u   0°u   45°u   90°u   135°)	r1   r2   r3   r8  r.   r0   r   r  get_text)r:   r;   r2  labelss       r@   test_polar_neg_theta_limsrt    so    
**,C	G	,BOORUUFBEE"$&HH$;$;$=>qajjl>F>[[[[ ?s   2Borderbeforeafterzpolar_errorbar.png)baseline_imagesrC   r
   c           	         t        j                  ddt         j                  z  t         j                  dz        }|t         j                  z  dz  dz   }t        j                  d      }|j                  d      }| d	k(  r;|j                  d
       |j                  d       |j                  ||ddddd       y |j                  ||ddddd       |j                  d
       |j                  d       y )Nr   rd   r   rG   )r   r   )r   r   rx   rv  r  r  r`      r   seagreen)xerryerrcapsizefmtr   )	r.   r/   r0   r1   r2   r3   r   r   errorbar)ru  r9   r8   r:   r;   s        r@   test_polar_errorbarr    s     IIaRUUBEEAI.ECA
**V
$C	G	,B
""3'
r"
E13S!
S
E13S!
S
""3'
r"rB   c                     t        j                         } | j                  d      }|j                         dk(  sJ |j	                  g d       |j                         dk(  sJ |j                  ddgddg       |j                         dk(  sJ |j	                  g d	       |j                         d
k(  sJ |j                  ddgddg       |j                         dk(  sJ y )Nr   rx   r   )r   rd   r   rt   )r   rt   r   rd   )r   rd   )r  r   r   rd   )r  rd   r  r{   )r{   rd   )r1   r2   r3   r   rm  r4   r   s     r@   test_radial_limits_behaviorr  .  s     **,C	G	,B;;=F"""MM,;;=F"""GGQFQF;;=F"""MM- ;;=G###GGQFRH;;=G###rB   c                  D   t        j                  ddi      \  } }|j                  j                  sJ t	        |j                  j                         t              sJ t        j                  d      }|j                  j                  |       |j                  j                  rJ t	        |j                  j                         t              sJ |j                  j                         j                  |u sJ |j                          |j                  j                  sJ t	        |j                  j                         t              sJ |j                  g d       |j                  j                  rJ t	        |j                  j                         t              sJ t	        |j                  j                         j                  t        j                        sJ |j                          |j                  g d       |j                  j                  rJ t	        |j                  j                         t              sJ t	        |j                  j                         j                  t        j                        sJ |j                          |j                  d       |j                  j                  sJ t	        |j                  j                         t              sJ t	        |j                  j                         j                  t        j                         sJ y )Nry   r   r   r   r   r   rd   r   r   )r1   r   r   isDefault_majlocr   r   r   mtickerMaxNLocatorset_major_locatorr   clearrm  FixedLocatorrm   
set_yscale
LogLocator)r:   r;   locators      r@   test_radial_locator_wrappingr  B  s<    ll|W&=>GC88$$$$bhh002MBBB !!!$GHHw'xx((((bhh002MBBB88%%',,777HHJ88$$$$bhh002MBBBMM,xx((((bhh002MBBBbhh002779M9MNNNHHJMM,xx((((bhh002MBBBbhh002779M9MNNNHHJMM% 88$$$$bhh002MBBBbhh002779K9KLLLrB   c                      t        j                  ddi      \  } }|j                  g d       |j                  j	                  g d       y )Nry   r   r   r  )zeroonetwothree)r1   r   rm  r   set_ticklabelsr   s     r@   %test_set_rticks_ticklabels_no_warningr  j  s:    
 ll|W&=>GCMM,HH;<rB   )@platformnumpyr.   numpy.testingr   r   
matplotlibrO   matplotlib.projections.polarr   r   r1   matplotlib.testing.decoratorsr   r   matplotlib.tickerr   r  machinerA   rX   rr   rv   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  markparametrizer  r  r+  r3  r9  r?  rH  rL  rR  rV  rY  r]  re  ri  rp  rt  r  r  r  r  r`  rB   r@   <module>r     s     )   6 $ O # #$I+8++-9auFJFJB %&iT+8++-9auFF6 ()9A :A(C . .   & &( #$I6 7 ,-Y? @ &'y9	 :	 +,I> ? 34IF G -.i@( A( ./yA$ B$ -.g> ? *+9=* >*@    !5%	= < ? 
=
="J 
I 
I > >	4O24  
6$DP6 ?#95@ 6@ ( (&\ 8W"56#7"8d!#! 7#$(%MP=rB   