ó _Ű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 CsGtjj|ƒ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} x8|D]0} d} | d7} | 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_ylimtindextviewLimtignore( tvalueRRtaxtisXAxisttickstlabelstlt newValuestvtloctresultterrmsg((s\/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/StrConverter.pytconvert2sV      +            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.pyts