
    h1                     L    S r SSKrSSKJr  S/r " S S\R                  5      rg)z2StrConverter module containing class StrConverter.    NStrConverterc                   H    \ rS rSrSr\S 5       r\S 5       r\S 5       rSr	g)r   
   aP  
A Matplotlib converter class for string data values.

Valid units for string are:
- 'indexed' : Values are indexed as they are specified for plotting.
- 'sorted'  : Values are sorted alphanumerically.
- 'inverted' : Values are inverted so that the first value is on top.
- 'sorted-inverted' :  A combination of 'sorted' and 'inverted'
c                     g )N )unitaxiss     [/var/www/html/env/lib/python3.13/site-packages/matplotlib/testing/jpl_units/StrConverter.pyaxisinfoStrConverter.axisinfo   s         c                    U / :X  a  / $ UR                   nX#R                  L a  SnOSnUR                  5         UR                  5       nUR	                  5       nU Vs/ s H)  owR                  5       (       d  M  UR                  5       PM+     nnU(       d  / n/ n[        R                  " U 5      (       d  U /n / nU  H"  n	X;  d  M
  X;  d  M  UR                  U	5        M$     UR                  U5        S/U-   S/-   n[        [        [        U5      5      5      nSUS'   US   S-
  US'   UR                  U5        UR                  U5        UR                  5       n
U
R!                  US   US   5        U(       a  UR#                  US   US   5        OUR%                  US   US   5        U  V	s/ s H  oUR'                  U	5         PM     nn	UR(                  R+                  S5        U$ s  snf s  sn	f )NTF g      ?r   )axesxaxisget_major_ticksget_ticklocsget_ticklabelsget_textnpiterableappendextendlistrangelen	set_ticksset_ticklabelsget_major_locator
set_boundsset_xlimset_ylimindexviewLimignore)valuer   r	   axisXAxistickslabelsl	newValuesvlocresults               r
   convertStrConverter.convert   s    B;I YY88GG!!#$$&(.?1**,,!**,?EF{{5!!GE	A1#5  #  	i  "%U3v;'(a"IOb	uF#$$&uQxr+KKa%),KKa%),278%QQ(%8


"_ @X 9s   G+8G+/G0c                     g)Nindexedr   )r'   r	   s     r
   default_unitsStrConverter.default_units]   s     r   r   N)
__name__
__module____qualname____firstlineno____doc__staticmethodr   r1   r5   __static_attributes__r   r   r
   r   r   
   sF       @ @D  r   )r;   numpyr   matplotlib.unitsunits__all__ConversionInterfacer   r   r   r
   <module>rC      s*    8   
W5,, Wr   