KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache
System : Linux server112.speedpacket.com 3.10.0-962.3.2.lve1.5.36.el7.x86_64 #1 SMP Mon May 18 02:16:06 EDT 2020 x86_64
User : equistyl ( 1341)
PHP Version : 8.1.30
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/matplotlib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/matplotlib/scale.pyc
�
r`]c@s�ddlmZddlZddlmZddlmZddlmZm	Z	m
Z
ddlmZmZm
Z
mZddlmZmZddlmZd	efd
��YZdefd��YZd
�Zd�Zdefd��YZdefd��YZied6ed6ed6Zd�Zd�Zeej�idje��d6e_d�Z d�Z!ej"j#ddjge�D]Z$e%e$�^q��de!�j&��dS(i����(tprint_functionN(tma(tdedent(t
NullFormattertScalarFormattertLogFormatterMathtext(tNullLocatort
LogLocatortAutoLocatortSymmetricalLogLocator(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((s6/usr/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((s6/usr/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((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pytlimit_range_for_scale-s(t__name__t
__module__t__doc__RRR(((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR
s		tLinearScalecBs/eZdZdZd�Zd�Zd�ZRS(s#
    The default linear scale.
    tlinearcKsdS(N((RRtkwargs((s6/usr/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((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyRBscCst�S(sy
        The transform for linear scaling is just the
        :class:`~matplotlib.transforms.IdentityTransform`.
        (R(R((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyRLs(RRRtnameRRR(((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR8s
		
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#((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyt_mask_non_positivesTscCsd||dk<|S(NgY��n�g((R&((s6/usr/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)eZdZdZeZeZd�ZRS(icCs2tj|�|dkr%t|_n	t|_dS(NR#(R
RR't_handle_nonposR((Rtnonpos((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR|s
(RRt
input_dimstoutput_dimstTruetis_separablethas_inverseR(((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR+vs
tLog10TransformcBs eZdZd�Zd�ZRS(g$@cCs?|j|d�}t|tj�r2tj|�Stj|�S(Ng$@(R,t
isinstanceRR%tlog10tnp(RR&((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyttransform_non_affine�s
cCs
tj�S(N(R)tInvertedLog10Transform(R((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pytinverted�s(RRtbaseR7R9(((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR3�s	R8cBs8eZdZdZeZeZdZd�Zd�Z	RS(ig$@cCstjd|�dS(Ng$@(Rtpower(RR&((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR7�scCs
tj�S(N(R)R3(R((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR9�s(
RRR.R/R0R1R2R:R7R9(((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR8�s	t
Log2TransformcBs eZdZd�Zd�ZRS(g@cCsL|j|d�}t|tj�r?tj|�tjd�Stj|�S(Ng@i(R,R4RR%R*R6tlog2(RR&((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR7�scCs
tj�S(N(R)tInvertedLog2Transform(R((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR9�s(RRR:R7R9(((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR<�s	R>cBs8eZdZdZeZeZdZd�Zd�Z	RS(ig@cCstjd|�dS(Ng@(RR;(RR&((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR7�scCs
tj�S(N(R)R<(R((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR9�s(
RRR.R/R0R1R2R:R7R9(((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR>�s	tNaturalLogTransformcBs#eZejZd�Zd�ZRS(cCsB|j|tj�}t|tj�r5tj|�Stj|�S(N(R,R6teR4RR%R*(RR&((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR7�s
cCs
tj�S(N(R)tInvertedNaturalLogTransform(R((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR9�s(RRR6R@R:R7R9(((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR?�s		RAcBs;eZdZdZeZeZejZ	d�Z
d�ZRS(icCstjtj|�tjS(N(RR;R6R@(RR&((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR7�scCs
tj�S(N(R)R?(R((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR9�s(RRR.R/R0R1R2R6R@R:R7R9(((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyRA�s		tLogTransformcBs;eZdZdZeZeZd�Zd�Zd�Z	RS(icCs;tj|�||_|dkr.t|_n	t|_dS(NR#(R
RR:R'R,R((RR:R-((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR�s

	cCsb|j||j�}t|tj�rEtj|�tj|j�Stj|�tj|j�S(N(R,R:R4RR%R*R6(RR&((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR7�scCstj|j�S(N(R)tInvertedLogTransformR:(R((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR9�s(
RRR.R/R0R1R2RR7R9(((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyRB�s		RCcBs;eZdZdZeZeZd�Zd�Zd�Z	RS(icCstj|�||_dS(N(R
RR:(RR:((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR�s
cCstj|j|�|jS(N(RR;R:(RR&((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR7�scCstj|j�S(N(R)RBR:(R((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR9�s(
RRR.R/R0R1R2RR7R9(((s6/usr/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: ``[2, 3, 4, 5, 6, 7, 8, 9]``

           will place 8 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-((s6/usr/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:RRR RQR!R(RR((s6/usr/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((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR(scCs.|dkr|p||dkr'|p*|fS(s6
        Limit the domain to positive values.
        g((RRRR((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR/s(RRRR"R
R+R3R8R<R>R?RARBRCRRRR(((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR)es




	)	
	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*).
    tsymlogtSymmetricalLogTransformcBs;eZdZdZeZeZd�Zd�Zd�Z	RS(icCsVtj|�||_||_||_|d|jd|_tj|�|_dS(Ng�?i����(	R
RR:t	linthreshtlinscalet
_linscale_adjR6R*t	_log_base(RR:RURV((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyRIs
			cCs�tj|�}tj||j|jdt�}||j|jtjtj|�|j�|j	}|j
j�r�tj|j
||j|�S|SdS(Ntcopy(
R6tsignRt
masked_insideRUtFalseRWR*tabsRXR#R$twhere(RR&RZtmaskedR*((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR7Qs			
(cCstj|j|j|j�S(N(RRtInvertedSymmetricalLogTransformR:RURV(R((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR9_s(
RRR.R/R0R1R2RR7R9(((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyRTCs		R`cBs;eZdZdZeZeZd�Zd�Zd�Z	RS(icCsktj|�tj|||�}||_||_|j|�|_||_|d|jd|_	dS(Ng�?i����(
R
RRRRTR:RUt	transformtinvlinthreshRVRW(RR:RURVRS((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyRis
					cCs�tj|�}tj||j|jdt�}||jtj|j|||j|j	�}|j
j�r�tj|j
||j	|�S|SdS(NRY(
R6RZRR[RbR\RUR;R:RWR#R$R^(RR&RZR_texp((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR7ts
cCstj|j|j|j�S(N(RRRTR:RURV(R((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR9�s(
RRR.R/R0R1R2RR7R9(((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR`cs		cKs|jdkrZ|jdd�}|jdd�}|jdd�}|jdd�}nH|jd	d�}|jd
d�}|jdd�}|jdd�}|dks�t�|d
ks�t�|dks�t�|j|||�|_||_||_||_||_	dS(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: ``[2, 3, 4, 5, 6, 7, 8, 9]``

           will place 8 logarithmically spaced minor ticks between
           each major tick.

        *linscalex*/*linscaley*:
           This allows the linear range (-*linthresh* to *linthresh*)
           to be stretched relative to the logarithmic range.  Its
           value is the number of decades to use for each half of the
           linear range.  For example, when *linscale* == 1.0 (the
           default), the space used for the positive and negative
           halves of the linear range will be equal to one decade in
           the logarithmic range.
        RDREg$@t
linthreshxg@RFt	linscalexg�?RHt
linthreshyRIt	linscaleygN(
RLRMRNtAssertionErrorRTRPR:RURVRQ(RRRR:RURQRV((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR�s&				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	RRRR:R RQR!R(RR((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR�s

cCs|jS(sE
        Return a :class:`SymmetricalLogTransform` instance.
        (RP(R((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyR�s(
RRRR"R
RTR`RRR(((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyRR7s	 !	2	RR*RScCstj�}|j�|S(N(t_scale_mappingtkeystsort(tnames((s6/usr/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(tlowerRNRiRO(tscaleRR((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyt
scale_factory�s	s | RlcCs|t|j<dS(sd
    Register a new kind of scale.

    *scale_class* must be a subclass of :class:`ScaleBase`.
    N(RiR"(tscale_class((s6/usr/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
(RmRitappendRRRtjointsplit(tdocsR"Rqt
class_docsRD((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pytget_scale_docs�s

	&
Rot
scale_docs('t
__future__RtnumpyR6Rtmatplotlib.cbookRtmatplotlib.tickerRRRRRRR	tmatplotlib.transformsR
Rt
matplotlibRtobjectR
RR'R(R)RRRiRmRpRRuRrRytinterpdtupdateRDtreprtstrip(((s6/usr/lib64/python2.7/site-packages/matplotlib/scale.pyt<module>s4")		��
					+

Anon7 - 2021