HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/StrConverter.pyc
�
_�3Lc@sKdZddljZddlmZdgZdejfd��YZdS(s2StrConverter module containing class StrConverter.i����N(titerabletStrConvertercBs;eZdZed��Zed��Zed��ZRS(s�: A matplotlib converter class.  Provides matplotlib conversion
        functionality 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'
   cCsdS(s�: Returns information on how to handle an axis that has string data.

      = INPUT VARIABLES
      - axis    The axis using this converter.
      - unit    The units to use for a axis with string data.

      = RETURN VALUE
      - Returns a matplotlib AxisInfo data structure that contains
        minor/major formatters, major/minor locators, and default
        label information.
      N(tNone(tunittaxis((s\/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/StrConverter.pytaxisinfo!sc
Cs_tjj|�r|S|gkr&gS|j}||j�krJt}nt}|j�|j�}|j	�}g|D]}|j
�ry|j
�^qy}|s�g}g}nt|�s�|g}ng}x6|D].}	|	|kr�|	|kr�|j|	�q�q�Wx-|D]%}	|r,|j|	�q|	g}qWdg|dg}t
t|��}d|d<|dd|d<|j|�|j|�|j�}
|
j|d|d�|r�|j|d|d�n|j|d|d�g}xP|D]H}	d}|d7}|	|ks-t|��|j||j|	��q�W|jjd�|S(s�: Convert value using unit to a float.  If value is a sequence, return
      the converted sequence.

      = INPUT VARIABLES
      - axis    The axis using this converter.
      - value   The value or list of values that need to be converted.
      - unit    The units to use for a axis with Epoch data.

      = RETURN VALUE
      - Returns the value parameter converted to floats.
      tg�?ii����s9This is due to a logic error in the StrConverter class.  s5Please report this error and its message in bugzilla.(tunitstConversionInterfacet
is_numliketaxest	get_xaxistTruetFalsetget_major_tickstget_ticklocstget_ticklabelstget_textRtappendtrangetlent	set_tickstset_ticklabelstget_major_locatort
set_boundstset_xlimtset_ylimtAssertionErrortindextviewLimtignore(
tvalueRRtaxtisXAxisttickstlabelstlt	newValuestvtloctresultterrmsg((s\/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/StrConverter.pytconvert2sX		
+	







cCsdS(s5: Return the default unit for value, or None.

      = INPUT VARIABLES
      - axis    The axis using this converter.
      - value   The value or list of values that need units.

      = RETURN VALUE
      - Returns the default units to use for value.
      Return the default unit for value, or None.
      tindexed((RR((s\/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/StrConverter.pyt
default_units�s(t__name__t
__module__t__doc__tstaticmethodRR*R,(((s\/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/StrConverter.pyRs	](R/tmatplotlib.unitsRtmatplotlib.cbookRt__all__RR(((s\/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/StrConverter.pyt<module>s