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: //proc/self/root/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyo
�
�)�Uc@s�ddlZddlZddlmZejZddlmZddlmZm	Z	m
Z
mZddlmZm
Z
mZmZmZddlmZmZddlmZdefd	��YZd
efd��YZd�Zd
�Zdefd��YZdefd��YZied6ed6ed6Zd�Zd�Zeej �idj!e��d6e_ d�Z"d�Z#ej$j%ddj!ge�D]Z&e'e&�^q��de#�j(��dS(i����N(tma(tdedent(t
NullFormattertScalarFormattertLogFormatterMathtextt	Formatter(tNullLocatort
LogLocatortAutoLocatortSymmetricalLogLocatortFixedLocator(t	TransformtIdentityTransform(t	docstringt	ScaleBasecBs)eZdZd�Zd�Zd�ZRS(s@
    The base class for all scales.

    Scales are separable transformations, working on a single dimension.

    Any subclasses will want to override:

      - :attr:`name`
      - :meth:`get_transform`

    And optionally:
      - :meth:`set_default_locators_and_formatters`
      - :meth:`limit_range_for_scale`
    cCs
t�dS(sq
        Return the :class:`~matplotlib.transforms.Transform` object
        associated with this scale.
        N(tNotImplementedError(tself((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyt
get_transformscCs
t�dS(s�
        Set the :class:`~matplotlib.ticker.Locator` and
        :class:`~matplotlib.ticker.Formatter` objects on the given
        axis to match this scale.
        N(R(Rtaxis((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyt#set_default_locators_and_formatters"scCs
||fS(s�
        Returns the range *vmin*, *vmax*, possibly limited to the
        domain supported by this scale.

        *minpos* should be the minimum positive value in the data.
         This is used by log scales to determine a minimum value.
        ((Rtvmintvmaxtminpos((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pytlimit_range_for_scale*s(t__name__t
__module__t__doc__RRR(((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyRs		tLinearScalecBs/eZdZdZd�Zd�Zd�ZRS(s#
    The default linear scale.
    tlinearcKsdS(N((RRtkwargs((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyt__init__;scCsD|jt��|jt��|jt��|jt��dS(sd
        Set the locators and formatters to reasonable defaults for
        linear scaling.
        N(tset_major_locatorRtset_major_formatterRtset_minor_locatorRtset_minor_formatterR(RR((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR>scCst�S(sy
        The transform for linear scaling is just the
        :class:`~matplotlib.transforms.IdentityTransform`.
        (R(R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyRHs(RRRtnameRRR(((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR4s
		
cCs/|dk}|j�r+tj|d|�S|S(s�
    Return a Numpy masked array where all non-positive values are
    masked.  If there are no non-positive values, the original array
    is returned.
    gtmask(tanyRtMaskedArray(taR$((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyt_mask_non_positivesPscCsd||dk<|S(NgY��n�g((R'((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyt_clip_non_positives[stLogScalecBs�eZdZdZdefd��YZdefd��YZdefd��YZdefd	��YZd
efd��YZ	defd
��YZ
defd��YZdefd��YZdefd��YZ
d�Zd�Zd�Zd�ZRS(s�
    A standard logarithmic scale.  Care is taken so non-positive
    values are not plotted.

    For computational efficiency (to push as much as possible to Numpy
    C code in the common cases), this scale provides different
    transforms depending on the base of the logarithm:

       - base 10 (:class:`Log10Transform`)
       - base 2 (:class:`Log2Transform`)
       - base e (:class:`NaturalLogTransform`)
       - arbitrary base (:class:`LogTransform`)
    tlogtLogTransformBasecBs#eZdZdZeZd�ZRS(icCs2tj|�|dkr%t|_n	t|_dS(NR$(RRR(t_handle_nonposR)(Rtnonpos((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyRus
(RRt
input_dimstoutput_dimstTruetis_separableR(((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR,pstLog10TransformcBs eZdZd�Zd�ZRS(g$@cCs<|j|d�}t|t�r/tj|�Stj|�S(Ng$@(R-t
isinstanceR&Rtlog10tnp(RR'((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyt	transform�s
cCs
tj�S(N(R*tInvertedLog10Transform(R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pytinverted�s(RRtbaseR7R9(((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR3}s	R8cBs2eZdZdZeZdZd�Zd�ZRS(ig$@cCstjd|�dS(Ng$@(Rtpower(RR'((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR7�scCs
tj�S(N(R*R3(R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR9�s(	RRR/R0R1R2R:R7R9(((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR8�s	t
Log2TransformcBs eZdZd�Zd�ZRS(g@cCsI|j|d�}t|t�r<tj|�tjd�Stj|�S(Ng@i(R-R4R&RR+R6tlog2(RR'((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR7�scCs
tj�S(N(R*tInvertedLog2Transform(R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR9�s(RRR:R7R9(((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR<�s	R>cBs2eZdZdZeZdZd�Zd�ZRS(ig@cCstjd|�dS(Ng@(RR;(RR'((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR7�scCs
tj�S(N(R*R<(R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR9�s(	RRR/R0R1R2R:R7R9(((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR>�s	tNaturalLogTransformcBs#eZejZd�Zd�ZRS(cCs?|j|tj�}t|t�r2tj|�Stj|�S(N(R-R6teR4R&RR+(RR'((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR7�s
cCs
tj�S(N(R*tInvertedNaturalLogTransform(R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR9�s(RRR6R@R:R7R9(((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR?�s		RAcBs5eZdZdZeZejZd�Z	d�Z
RS(icCstjtj|�tjS(N(RR;R6R@(RR'((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR7�scCs
tj�S(N(R*R?(R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR9�s(RRR/R0R1R2R6R@R:R7R9(((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyRA�s		tLogTransformcBs5eZdZdZeZd�Zd�Zd�ZRS(icCs;tj|�||_|dkr.t|_n	t|_dS(NR$(RRR:R(R-R)(RR:R.((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR�s

	cCs_|j||j�}t|t�rBtj|�tj|j�Stj|�tj|j�S(N(R-R:R4R&RR+R6(RR'((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR7�scCstj|j�S(N(R*tInvertedLogTransformR:(R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR9�s(	RRR/R0R1R2RR7R9(((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyRB�s		RCcBs5eZdZdZeZd�Zd�Zd�ZRS(icCstj|�||_dS(N(RRR:(RR:((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR�s
cCstj|j|�|jS(N(RR;R:(RR'((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR7�scCstj|j�S(N(R*RBR:(R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR9�s(	RRR/R0R1R2RR7R9(((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyRC�s		cKs*|jdkrH|jdd�}|jdd
�}|jdd�}n6|jdd�}|jdd
�}|jd	d�}|dkr�td��n|dkr�|j|�|_nZ|dkr�|j|�|_n9|tjkr�|j	|�|_n|j
||�|_||_||_d
S(s)
        *basex*/*basey*:
           The base of the logarithm

        *nonposx*/*nonposy*: ['mask' | 'clip' ]
          non-positive values in *x* or *y* can be masked as
          invalid, or clipped to a very small positive number

        *subsx*/*subsy*:
           Where to place the subticks between each major tick.
           Should be a sequence of integers.  For example, in a log10
           scale: ``[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]``

           will place 10 logarithmically spaced minor ticks between
           each major tick.
        txtbasexg$@tsubsxtnonposxR$tbaseytsubsytnonposytclips/nonposx, nonposy kwarg must be 'mask' or 'clip'g@N(smaskRK(
t	axis_nametpoptNonet
ValueErrorR3t
_transformR<R6R@R?RBR:tsubs(RRRR:RQR.((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR�s$	cCs\|jt|j��|jt|j��|jt|j|j��|jt��dS(sb
        Set the locators and formatters to specialized versions for
        log scaling.
        N(	RRR:R RR!RQR"R(RR((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyRscCs|jS(s
        Return a :class:`~matplotlib.transforms.Transform` instance
        appropriate for the given logarithm base.
        (RP(R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyRscCs.|dkr|p||dkr'|p*|fS(s6
        Limit the domain to positive values.
        g((RRRR((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR%s(RRRR#RR,R3R8R<R>R?RARBRCRRRR(((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR*_s

	)	
	tSymmetricalLogScalecBs[eZdZdZdefd��YZdefd��YZd�Zd�Zd�Z	RS(	sh
    The symmetrical logarithmic scale is logarithmic in both the
    positive and negative directions from the origin.

    Since the values close to zero tend toward infinity, there is a
    need to have a range around zero that is linear.  The parameter
    *linthresh* allows the user to specify the size of this range
    (-*linthresh*, *linthresh*).
    tsymlogtSymmetricalLogTransformcBs5eZdZdZeZd�Zd�Zd�ZRS(icCsRtj|�||_||_tj|�|_tj|�|j||_dS(N(RRR:t	linthreshR6R+t	_log_baset
_linadjust(RR:RU((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR>s

		cCs�tj|�}tj|�}tj||j|jdt�}|tjtj|��|j	}|j
j�r�tjtj|j
||j
|��Stj|�SdS(Ntcopy(R6tasarraytsignRt
masked_insideRUtFalseR+tabsRVR$R%twhereRW(RR'RZtmaskedR+((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR7Es"#

cCstj|j|j�S(N(RRtInvertedSymmetricalLogTransformR:RU(R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR9Qs(	RRR/R0R1R2RR7R9(((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyRT9s		R`cBs5eZdZdZeZd�Zd�Zd�ZRS(icCsktj|�||_||_tj|�|_tj|�|j|_|tj|�|j|_dS(N(	RRR:RUR6R+RVt_log_linthreshRW(RR:RU((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyRYs
		cCsktj|�}tj||jktj||jk||jtj|j|��tj|j|��S(N(R6RYR^RaRWR;R:(RR'((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR7as
cCstj|j�S(N(RRRTR:(R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR9is(	RRR/R0R1R2RR7R9(((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR`Ts		cKs�|jdkrH|jdd�}|jdd�}|jdd
�}n6|jdd�}|jdd�}|jd	d
�}|j||�|_||_||_||_d
S(s"
        *basex*/*basey*:
           The base of the logarithm

        *linthreshx*/*linthreshy*:
          The range (-*x*, *x*) within which the plot is linear (to
          avoid having the plot go to infinity around zero).

        *subsx*/*subsy*:
           Where to place the subticks between each major tick.
           Should be a sequence of integers.  For example, in a log10
           scale: ``[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]``

           will place 10 logarithmically spaced minor ticks between
           each major tick.
        RDREg$@t
linthreshxg@RFRHt
linthreshyRIN(RLRMRNRTRPR:RURQ(RRRR:RURQ((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyRls		cCsb|jt|j���|jt|j��|jt|j�|j��|jt	��dS(sn
        Set the locators and formatters to specialized versions for
        symmetrical log scaling.
        N(
RR	RR RR:R!RQR"R(RR((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR�scCs|jS(sE
        Return a :class:`SymmetricalLogTransform` instance.
        (RP(R((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyR�s(
RRRR#RRTR`RRR(((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyRR-s		 	
RR+RScCstj�}|j�|S(N(t_scale_mappingtkeystsort(tnames((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pytget_scale_names�s
cKsQ|j�}|dkr!d}n|tkr@td|��nt|||�S(sC
    Return a scale class by name.

    ACCEPTS: [ %(names)s ]
    RsUnknown scale type '%s'N(tlowerRNRdRO(tscaleRR((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyt
scale_factory�s	s | RgcCs|t|j<dS(sd
    Register a new kind of scale.

    *scale_class* must be a subclass of :class:`ScaleBase`.
    N(RdR#(tscale_class((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pytregister_scale�scCs�g}x�t�D]�}t|}|jd|�|jd�t|jj�}djg|jd�D]}d|^qf�}|j|�|jd�qWdj|�S(sF
    Helper function for generating docstrings related to scales.
    s    '%s'ts
s        %s
(RhRdtappendRRRtjointsplit(tdocsR#Rlt
class_docsRD((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pytget_scale_docs�s

	&
Rjt
scale_docs()ttextwraptnumpyR6RR&tcbookRttickerRRRRRRRR	R
t
transformsRRt
matplotlibR
tobjectRRR(R)R*RRRdRhRkRRpRmRttinterpdtupdateRDtreprtstrip(((sC/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/scale.pyt<module>s6	"((		�q
				+