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/UnitDblConverter.pyc
�
_�3Lc@s�dZddlZddljZddljZddljj	Z	ddl
mZdgZdd�Zdejfd��YZdS(s:UnitDblConverter module containing class UnitDblConverter.i����N(titerabletUnitDblConvertercCst|tjdd�}|dkr1t|�S|dkrAdS|dkrQdS|ddkrpd|dfSd	|fSd
S(sRadian function formatter.g@g�?iis$\pi/2$is$\pi$s$%s\pi$s	$%s\pi/2$N(tinttnptpitstr(txtpostn((s`/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/UnitDblConverter.pytrad_fns
cBsVeZdZidd6dd6dd6Zed��Zed��Zed	��ZRS(
sv: A matplotlib converter class.  Provides matplotlib conversion
        functionality for the Monte UnitDbl class.
   tkmtdistancetdegtangletsecttimecCs�ddljj}|r?t|t�r0|}qE|j�}nd}|dkrctjt	�}nE|dkr�t|j
tj�r�tjj
�}n|jdt�}tjd|d|�S(sV: Returns information on how to handle an axis that has Epoch data.

      = INPUT VARIABLES
      - unit    The units to use for a axis with Epoch data.

      = RETURN VALUE
      - Returns a matplotlib AxisInfo data structure that contains
        minor/major formatters, major/minor locators, and default
        label information.
      i����NtradRt	useOffsettmajfmttlabel(tmatplotlib.testing.jpl_unitsttestingt	jpl_unitst
isinstanceRRtNonettickert
FuncFormatterR	taxestpolart	PolarAxestThetaFormattertUnitDblFormattertFalsetunitstAxisInfo(tunittaxistURR((s`/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/UnitDblConverter.pytaxisinfo8s
	!cCsddljj}t}t|�rst|t�rst|�dkrJgSg|D]}tj	|||�^qQSnt||j
�r�t}n|r�tj
j|�r�|S|dkr�tj||�}nt|jtj�r�|j�dkr�|j	d�S|j	|�S(sW: Convert value using unit to a float.  If value is a sequence, return
      the converted sequence.

      = INPUT VARIABLES
      - 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.
      i����NiR
R(RRRtTrueRRRtlenRtconverttUnitDblR R!tConversionInterfacet
is_numlikeRt
default_unitsRRRttype(tvalueR#R$R%tisNotUnitDblR((s`/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/UnitDblConverter.pyR)_s
)	'
cCsEt|�r0t|t�r0tj|d|�Stj|j�SdS(s: Return the default unit for value, or None.

      = INPUT VARIABLES
      - 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.
      iN(RRRRR-tdefaultsR.(R/R$((s`/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/UnitDblConverter.pyR-�s(t__name__t
__module__t__doc__R1tstaticmethodR&R)R-(((s`/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/UnitDblConverter.pyR+s
'.(R4tnumpyRtmatplotlib.unitsR!tmatplotlib.tickerRtmatplotlib.projections.polartprojectionsRtmatplotlib.cbookRt__all__RR	R+R(((s`/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/testing/jpl_units/UnitDblConverter.pyt<module>s