Files
intellecton/venv/lib/python3.12/site-packages/matplotlib/__pycache__/scale.cpython-312.pyc
T

323 lines
36 KiB
Plaintext
Raw Normal View History

Ë
†Rj,iã óV—dZddlZddlZddlZddlZddlmZmZddl m
Z
m Z m Z m
Z
mZmZmZmZmZmZmZddlmZmZGd„d«ZGd„d e«ZGd
„d e«ZGd „d
e«ZGd„de«ZGd„de«ZGd„de«ZGd„de«ZGd„de«Z Gd„de«Z!Gd„de«Z"Gd„de«Z#Gd„de«Z$Gd „d!e«Z%Gd"„d#e«Z&Gd$„d%e«Z'Gd&„d'e«Z(eee"e%e(eed(œZ)d)„Z*d*„Z+e+jr1e+jd+d,jYe-e.e*«««ize+_d-„Z/d.„Z0ejbjed/d,jYe*«D�cgc]
}e.|«‘Œ c}«ze0«jg«¬0«ycc}w)1a²
Scales define the distribution of data values on an axis, e.g. a log scaling.
The mapping is implemented through `.Transform` subclasses.
The following scales are built-in:
.. _builtin_scales:
============= ===================== ================================ =================================
Name Class Transform Inverted transform
============= ===================== ================================ =================================
"asinh" `AsinhScale` `AsinhTransform` `InvertedAsinhTransform`
"function" `FuncScale` `FuncTransform` `FuncTransform`
"functionlog" `FuncScaleLog` `FuncTransform` + `LogTransform` `InvertedLogTransform` + `FuncTransform`
"linear" `LinearScale` `.IdentityTransform` `.IdentityTransform`
"log" `LogScale` `LogTransform` `InvertedLogTransform`
"logit" `LogitScale` `LogitTransform` `LogisticTransform`
"symlog" `SymmetricalLogScale` `SymmetricalLogTransform` `InvertedSymmetricalLogTransform`
============= ===================== ================================ =================================
A user will often only use the scale name, e.g. when setting the scale through
`~.Axes.set_xscale`: ``ax.set_xscale("log")``.
See also the :ref:`scales examples <sphx_glr_gallery_scales>` in the documentation.
Custom scaling can be achieved through `FuncScale`, or by creating your own
`ScaleBase` subclass and corresponding transforms (see :doc:`/gallery/scales/custom_scale`).
Third parties can register their scales by name through `register_scale`.
éN)Ú_apiÚ
_docstring) Ú
NullFormatterÚScalarFormatterÚLogFormatterSciNotationÚLogitFormatterÚ NullLocatorÚ
LogLocatorÚ AutoLocatorÚAutoMinorLocatorÚSymmetricalLogLocatorÚ AsinhLocatorÚ LogitLocator)Ú TransformÚIdentityTransformcó(—eZdZdZd„Zd„Zd„Zd„Zy)Ú ScaleBasea
The base class for all scales.
Scales are separable transformations, working on a single dimension.
Subclasses should override
:attr:`name`
The scale's name.
:meth:`get_transform`
A method returning a `.Transform`, which converts data coordinates to
scaled coordinates. This transform should be invertible, so that e.g.
mouse positions can be converted back to data coordinates.
:meth:`set_default_locators_and_formatters`
A method that sets default locators and formatters for an `~.axis.Axis`
that uses this scale.
:meth:`limit_range_for_scale`
An optional method that "fixes" the axis range to acceptable values,
e.g. restricting log-scaled axes to positive values.
có—y)a‰
Construct a new scale.
Notes
-----
The following note is for scale implementers.
For back-compatibility reasons, scales take an `~matplotlib.axis.Axis`
object as first argument. However, this argument should not
be used: a single scale object should be usable by multiple
`~matplotlib.axis.Axis`\es at the same time.
N©©ÚselfÚaxiss úS/home/antigravity/intellecton/venv/lib/python3.12/site-packages/matplotlib/scale.pyÚ__init__zScaleBase.__init__Dó�ócó—t«‚)zL
Return the `.Transform` object associated with this scale.
©ÚNotImplementedError©rs rÚ
get_transformzScaleBase.get_transformRs
€ô"Ó#Ð#rcó—t«‚)zi
Set the locators and formatters of *axis* to instances suitable for
this scale.
rrs rÚ#set_default_locators_and_formattersz-ScaleBase.set_default_locators_and_formattersXs
€ô
"Ó#Ð#rcó
—||fS)zú
Return the range *vmin*, *vmax*, restricted to the
domain supported by this scale (if any).
*minpos* should be the minimum positive value in the data.
This is used by log scales to determine a minimum value.
r©rÚvminÚvmaxÚminposs rÚlimit_range_for_scalezScaleBase.limit_range_for_scale_s€ð�TˆzÐrN)Ú__name__Ú
__module__Ú __qualname__Ú__doc__rr!r#r)rrrrr.s„ñò*  ò$ò $órrcó&—eZdZdZdZd„Zd„Zd„Zy)Ú LinearScalez#
The default linear scale.
Úlinearcó—y)z
Nrrs rrzLinearScale.__init__qrrcóˆ—|jt««|jt««|j t ««|j dk(rtjds"|j dk(r-tjdr|jt««y|jt««y©NÚxzxtick.minor.visibleÚyzytick.minor.visible© Úset_major_locatorr Úset_major_formatterrÚset_minor_formatterrÚ axis_nameÚmplÚrcParamsÚset_minor_locatorr r rs rr#z/LinearScale.set_default_locators_and_formattersxó…€à ×Ñœ{›}Ô-Ø × Ñ ¤Ó!2Ô3Ø × Ñ ¤£Ô1à �N‰N˜cÒ !¤c§l¡lÐ3HÒ&IØ—‘ #Ò%¬#¯,©,Ð7LÒ*MØ × "Ñ "Ô#3Ó#5Õ 6à × "Ñ "¤;£=Õ 1rcó—t«S)z€
Return the transform for linear scaling, which is just the
`~matplotlib.transforms.IdentityTransform`.
)rr s rr!zLinearScale.get_transform„s
€ô
!Ó"Ð"rN)r*r+r,r-Únamerr#r!rrrr/r/js„ñð €Dò ò
2ó#rr/có6‡—eZdZdZdxZZˆfd„Zd„Zd„ZˆxZ S)Ú
FuncTransformzi
A simple transform that takes and arbitrary function for the
forward and inverse transform.
éc󀕗t‰|�«t|«rt|«r||_||_yt d«‚)a£
Parameters
----------
forward : callable
The forward function for the transform. This function must have
an inverse and, for best behavior, be monotonic.
It must have the signature::
def forward(values: array-like) -> array-like
inverse : callable
The inverse of the forward function. Signature as ``forward``.
z,arguments to FuncTransform must be functionsN)ÚsuperrÚcallableÚ_forwardÚ_inverseÚ
ValueError)rÚforwardÚinverseÚ __class__s €rrzFuncTransform.__init__”s9ø€ô ‰ÑÔÜ �GÔ ¤¨'Ô!2Ø#ˆDŒMØ#ˆD�MäÐKÓLÐ Lrcó$—|j|«S©N)rG©rÚvaluess rÚtransform_non_affinez"FuncTransform.transform_non_affine©s€Ø�}‰}˜VÓ$Ð$rcóB—t|j|j«SrN)rBrHrGr s rÚinvertedzFuncTransform.inverted¬s€Ü˜TŸ]™]¨D¯M©MÓ:Ð:r©
r*r+r,r-Ú
input_dimsÚ output_dimsrrQrSÚ
__classcell__©rLs@rrBrBŒs$ø„ñð
!Ð €J�ôMò*%ö;rrBcó&—eZdZdZdZd„Zd„Zd„Zy)Ú FuncScalezN
Provide an arbitrary scale with user-supplied function for the axis.
Úfunctioncó4—|\}}t||«}||_y)a•
Parameters
----------
axis : `~matplotlib.axis.Axis`
The axis for the scale.
functions : (callable, callable)
two-tuple of the forward and inverse functions for the scale.
The forward function must be monotonic.
Both functions must have the signature::
def forward(values: array-like) -> array-like
N)rBÚ
_transform)rrÚ functionsrJrKÚ transforms rrzFuncScale.__init__·s!€ð%ш�Ü! '¨7Ó3ˆ Ø#ˆ�rcó—|jS)z7Return the `.FuncTransform` associated with this scale.©r]r s rr!zFuncScale.get_transformÉó €à�‰Ðrcóˆ—|jt««|jt««|j t ««|j dk(rtjds"|j dk(r-tjdr|jt««y|jt««yr3r6rs rr#z-FuncScale.set_default_locators_and_formattersÍr>rN)r*r+r,r-r@rr!r#rrrrZrZ°s„ñð €Dò$ò$ó
2rrZcó:‡—eZdZdxZZdˆfd„ Zd„Zd„Zd„ZˆxZ S)Ú LogTransformrCc󘕗t‰|�«|dks|dk(r td«‚||_t j
dddœ|¬«|_y)NrrCz#The log base cannot be <= 0 or == 1TF©ÚclipÚmask©Ú nonpositive)rErrIÚbaserÚ
check_getitemÚ_clip)rrlrkrLs €rrzLogTransform.__init__ÝsKø€Ü
‰ÑÔØ �1Š9˜ š ÜÐBÓCÐ C؈Œ Ü×'Ñ'Ø 5Ñ )°{ôDˆ�
rcó†—djt|«j|j|jrd«Sd«S)Nz{}(base={}, nonpositive={!r})rhri)ÚformatÚtyper*rlrnr s rÚ__str__zLogTransform.__str__åsA€Ø.×5Ñ5Ü �‹J× Ñ  §¡°d·j²j¨FóNð NØFLóNð Nrcó¾—tjdd¬«5tjtjdtjdtj
ij
|j«}|r ||«}n7tj|«}|tj|j«z}|jrd||dk<ddd«|S#1swYSxYw)NÚignore©ÚdivideÚinvalidéé
éüÿÿr) ÚnpÚerrstateÚeÚlogÚlog2Úlog10Úgetrlrn)rrPr~Úouts rrQz!LogTransform.transform_non_affineés¦€ä
�[‰[ °(Ô
;ñ )Ü—4‘4œŸ™ ¤B§G¡G¨R´·±Ð:×>Ñ>¸t¿y¹yÓIˆCÙÙ˜&“k‘ä—f‘f˜V“n�Ø”r—v‘v˜dŸi™iÓ(Ñ(�Ø�zŠzð$)��F˜a‘KÑ ÷# )ð$ˆ
÷% )ð$ˆ
ús ˜B0CÃCcó,—t|j«SrN)ÚInvertedLogTransformrlr s rrSzLogTransform.invertedÿs€Ü# D§I¡IÓ.Ð.r)rh©
r*r+r,rUrVrrrrQrSrWrXs@rrereÚs#ø„Ø Ð €J�õDòNòö,/rrecó8‡—eZdZdxZZˆfd„Zd„Zd„Zd„ZˆxZ S)r„rCcó0•—t‰|�«||_yrN)rErrl)rrlrLs €rrzInvertedLogTransform.__init__sø€Ü
‰ÑÔØˆ� rcóL—t|«j›d|j›d�S)Nz(base=ú))rqr*rlr s rrrzInvertedLogTransform.__str__
s$€Ü�t“*×%Ñ%Ð& f¨T¯Y©Y¨K°qÐ9Ð9rcóB—tj|j|«SrN)r{ÚpowerrlrOs rrQz)InvertedLogTransform.transform_non_affine
s€Ü�x‰x˜Ÿ ™  6Ó*Ð*rcó,—t|j«SrN)rerlr s rrSzInvertedLogTransform.inverteds€Ü˜DŸI™IÓ&Ð&rr…rXs@rr„r„s!ø„Ø Ð €J�ôò:ò+ö'rr„cóH—eZdZdZdZddddœd„Zed„«Zd „Zd
„Z d „Z
y) ÚLogScalezT
A standard logarithmic scale. Care is taken to only plot positive values.
r~ryNrh)rlÚsubsrkcó4—t||«|_||_y)a£
Parameters
----------
axis : `~matplotlib.axis.Axis`
The axis for the scale.
base : float, default: 10
The base of the logarithm.
nonpositive : {'clip', 'mask'}, default: 'clip'
Determines the behavior for non-positive values. They can either
be masked as invalid, or clipped to a very small positive number.
subs : sequence of int, default: None
Where to place the subticks between each major tick. 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.
N)rer]r�)rrrlr�rks rrzLogScale.__init__s€ô ' t¨[Ó9ˆŒØˆ� rcó.—|jjSrN©r]rlr s rú<lambda>zLogScale.<lambda>-ó€ §¡×!5Ñ!5€rcóV—|jt|j««|jt |j««|j t|j|j ««|jt |j|j du¬««y)N)Ú
labelOnlyBase)r7r
rlr8rr=r�r9rs rr#z,LogScale.set_default_locators_and_formatters/sx€à ×Ñœz¨$¯)©)Ó4Ô5Ø × Ñ Ô!8¸¿¹Ó!CÔDØ ×Ñœz¨$¯)©)°T·Y±YÓ?Ô@Ø × Ñ Ü # D§I¡IØ37·9±9ÀDÐ3Hô
Kõ Lrcó—|jS)z6Return the `.LogTransform` associated with this scale.rar s rr!zLogScale.get_transform8rbrcóV—tj|«sd}|dkr|n||dkr|fS|fS)z$Limit the domain to positive values.gYóøÂn¥r©r{Úisfiniter%s rr)zLogScale.limit_range_for_scale<s>€ä�{‰{˜6Ô"؈Fà !š)‘¨Ø !š)�ð/ð /Ø)-ð/ð /r) r*r+r,r-r@rÚpropertyrlr#r!r)rrrrŽrŽs7„ñð €Dà%'¨dÀôñ& Ñ5Ó 6€DòLòó/rrŽcó2—eZdZdZdZdd„Zed„«Zd„Zy)Ú FuncScaleLogzu
Provide an arbitrary scale with user-supplied function for the axis and
then put on a logarithmic axes.
Ú functionlogcóV—|\}}d|_t||«t|«z|_y)aä
Parameters
----------
axis : `~matplotlib.axis.Axis`
The axis for the scale.
functions : (callable, callable)
two-tuple of the forward and inverse functions for the scale.
The forward function must be monotonic.
Both functions must have the signature::
def forward(values: array-like) -> array-like
base : float, default: 10
Logarithmic base of the scale.
N)r�rBrer])rrr^rlrJrKs rrzFuncScaleLog.__init__Ms-€ð"%ш�؈Œ Ü'¨°Ó9¼LÈÓ<NÑNˆ�rcóB—|jjjSrN)r]Ú_brlr s rrlzFuncScaleLog.basebs€à�‰×!Ñ!×&Ñ&Ð&rcó—|jS)z3Return the `.Transform` associated with this scale.rar s rr!zFuncScaleLog.get_transformfrbrN)ry) r*r+r,r-r@rr›rlr!rrrr�r�Es-„ñð
€DóOð*ñ'óð'órr�có2‡—eZdZdxZZˆfd„Zd„Zd„ZˆxZS)ÚSymmetricalLogTransformrCcó•—t‰|�«|dkr td«‚|dkr td«‚|dkr td«‚||_||_||_|d|jdzz
z |_tj|«|_ y)Nçð?z'base' must be larger than 1çz'linthresh' must be positivez'linscale' must be positiveéÿÿÿÿ)
rErrIrlÚ linthreshÚlinscaleÚ
_linscale_adjr{r~Ú _log_base)rrlr©rªrLs €rrz SymmetricalLogTransform.__init__ns†ø€Ü
‰ÑÔØ �3Š;ÜÐ;Ó<Ð <Ø ˜Ò ÜÐ;Ó<Ð <Ø �sŠ?ÜÐ:Ó;Ð ;؈Œ Ø"ˆŒØ ˆŒ
Ø&¨#°· ± ¸R±Ñ*?Ñ@ˆÔÜŸ™ ›ˆ�rcóŽ—tj|«}tjdd¬«5tj|«|jz|j
tj ||jz «|jz zz}||jk}ddd«||j
z|<|S#1swYŒ xYw©Nrtru)r{Úabsr|Úsignr©r«r~r¬©rrPÚabs_ar‚Úinsides rrQz,SymmetricalLogTransform.transform_non_affine|sª€Ü—‘�v“ˆÜ
�[‰[ °(Ô
;ñ -Ü—'‘'˜&“/ D§N¡NÑ2Ø×"Ñ"Ü—‘�u˜tŸ~™~Ñ-Ó.°·±Ñ?ñ@ñAˆCð˜dŸn™nÑ,ˆF÷  -ð
˜V‘n t×'9Ñ'9Ñ9ˆˆF‰ ؈
÷
 -ð -ús ­A/B;Â;CcóX—t|j|j|j«SrN)ÚInvertedSymmetricalLogTransformrlr©rªr s rrSz SymmetricalLogTransform.inverted†s"€Ü.¨t¯y©y¸$¿.¹.Ø/3¯}©}ó>ð >r© r*r+r,rUrVrrQrSrWrXs@rr¤r¤ksø„Ø Ð €J�ô &òö>rr¤có2‡—eZdZdxZZˆfd„Zd„Zd„ZˆxZS)rµrCcóÆ•—t‰|�«t|||«}||_||_|j |«|_||_|d|jdzz
z |_y)Nr¦r¨) rErr¤rlr©r_Ú invlinthreshrªr«)rrlr©rªÚsymlogrLs €rrz(InvertedSymmetricalLogTransform.__init__Žs^ø€Ü
‰ÑÔÜ(¨¨y¸(ÓCˆØˆŒ Ø"ˆŒØ"×,Ñ,¨YÓ7ˆÔØ ˆŒ
Ø&¨#°· ± ¸R±Ñ*?Ñ@ˆÕrcóŠ—tj|«}tjdd¬«5tj|«|jztj
|j ||jz |jz
«z}||jk}ddd«||jz |<|S#1swYŒ xYwr®) r{r¯r|r°r©r‹rlr«r¹r±s rrQz4InvertedSymmetricalLogTransform.transform_non_affine—s©€Ü—‘�v“ˆÜ
�[‰[ °(Ô
;ñ 0Ü—'‘'˜&“/ D§N¡NÑ2Ü—‘˜Ÿ™Ø §¡Ñ/°$×2DÑ2DÑDóFñGˆCð˜d×/Ñ/Ñ/ˆF÷  0ð
˜V‘n t×'9Ñ'9Ñ9ˆˆF‰ ؈
÷
 0ð 0ús ­A-B9Â9CcóX—t|j|j|j«SrN)r¤rlr©rªr s rrSz(InvertedSymmetricalLogTransform.inverted¡s$€Ü& t§y¡yØ'+§~¡~°t·}±}óFð Frr¶rXs@rrµrµ‹sø„Ø Ð €J�ôBòöFrrµcóh—eZdZdZdZdddddœd„Zed „«Zed
„«Zed „«Z d „Z
d
„Z y)ÚSymmetricalLogScaleac
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*).
See :doc:`/gallery/scales/symlog_demo` for a detailed description.
Parameters
----------
base : float, default: 10
The base of the logarithm.
linthresh : float, default: 2
Defines the range ``(-x, x)``, within which the plot is linear.
This avoids having the plot go to infinity around zero.
subs : sequence of int
Where to place the subticks between each major tick.
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.
linscale : float, optional
This allows the linear range ``(-linthresh, 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.
rºryrxNrC)rlr©r�rªcó6—t|||«|_||_yrN)r¤r]r�)rrrlr©r�rªs rrzSymmetricalLogScale.__init__Ês€Ü1°$¸ À8ÓLˆŒØˆ� rcó.—|jjSrNr’r s rr“zSymmetricalLogScale.<lambda>Îr”rcó.—|jjSrN)r]r©r s rr“zSymmetricalLogScale.<lambda>Ïs€ d§o¡o×&?Ñ&?€rcó.—|jjSrN)r]rªr s rr“zSymmetricalLogScale.<lambda>Ðs€ T§_¡_×%=Ñ%=€rcó4—|jt|j«««|jt |j
««|j
t|j«|j««|jt««yrN)
r7r
r!r8rrlr=r�r9rrs rr#z7SymmetricalLogScale.set_default_locators_and_formattersÒsq€à ×ÑÔ4°T×5GÑ5GÓ5IÓJÔKØ × Ñ Ô!8¸¿¹Ó!CÔDØ ×ÑÔ4°T×5GÑ5GÓ5IØ59·Y±Yó @ô Aà × Ñ ¤£Õ1rcó—|jS)zAReturn the `.SymmetricalLogTransform` associated with this scale.rar s rr!z!SymmetricalLogScale.get_transformÚrbr) r*r+r,r-r@rr›rlr©rªr#r!rrrr¾r¾¦sJ„ñ ðB €Dà%'°1¸4È!ôñ Ñ5Ó 6€DÙÑ?Ó@€IÙÑ=Ó>€Hò2órr¾có6‡—eZdZdZdxZZˆfd„Zd„Zd„ZˆxZ S)ÚAsinhTransformz<Inverse hyperbolic-sine transformation used by `.AsinhScale`rCcóP•—t‰|�«|dkr td«‚||_y)Nr§z8Scale parameter 'linear_width' must be strictly positive)rErrIÚ linear_width©rrÈrLs €rrzAsinhTransform.__init__ãs0ø€Ü
‰ÑÔØ ˜3Ò Üð9ó:ð
:à(ˆÕrcó`—|jtj||jz «zSrN)rÈr{ÚarcsinhrOs rrQz#AsinhTransform.transform_non_affineês'€Ø× Ñ ¤2§:¡:¨f°t×7HÑ7HÑ.HÓ#IÑIÐIrcó,—t|j«SrN)ÚInvertedAsinhTransformrÈr s rrSzAsinhTransform.invertedís€Ü% d×&7Ñ&7Ó8Ð8rrTrXs@rrÆrÆßs ø„ÙFØ Ð €J�ô)òJö9rrÆcó6‡—eZdZdZdxZZˆfd„Zd„Zd„ZˆxZ S)rÍz4Hyperbolic sine transformation used by `.AsinhScale`rCcó0•—t‰|�«||_yrN)rErrÈrÉs €rrzInvertedAsinhTransform.__init__õsø€Ü
‰ÑÔØ(ˆÕrcó`—|jtj||jz «zSrN)rÈr{ÚsinhrOs rrQz+InvertedAsinhTransform.transform_non_affineùs'€Ø× Ñ ¤2§7¡7¨6°D×4EÑ4EÑ+EÓ#FÑFÐFrcó,—t|j«SrN)rÆrÈr s rrSzInvertedAsinhTransform.invertedüó€Ü˜d×/Ñ/Ó0Ð0rrTrXs@rrÍrÍñs ø„Ù>Ø Ð €J�ô)òGö1rrÍc ód‡—eZdZdZdZddddddddd œZd
d d d
œˆfd„
Zed„«Zd„Z d„Z
ˆxZ S)Ú
AsinhScaleaì
A quasi-logarithmic scale based on the inverse hyperbolic sine (asinh)
For values close to zero, this is essentially a linear scale,
but for large magnitude values (either positive or negative)
it is asymptotically logarithmic. The transition between these
linear and logarithmic regimes is smooth, and has no discontinuities
in the function gradient in contrast to
the `.SymmetricalLogScale` ("symlog") scale.
Specifically, the transformation of an axis coordinate :math:`a` is
:math:`a \rightarrow a_0 \sinh^{-1} (a / a_0)` where :math:`a_0`
is the effective width of the linear region of the transformation.
In that region, the transformation is
:math:`a \rightarrow a + \mathcal{O}(a^3)`.
For large values of :math:`a` the transformation behaves as
:math:`a \rightarrow a_0 \, \mathrm{sgn}(a) \ln |a| + \mathcal{O}(1)`.
.. note::
This API is provisional and may be revised in the future
based on early user feedback.
Úasinh)rx)rxé)rxé)rxr×é)r×é)éi)ér×rØrÙryrÚé@ir¦ryÚauto)rÈrlr�c óÒ•—t‰|�|«t|«|_t |«|_|dk(r+|j j|j
«|_y||_y)a 
Parameters
----------
linear_width : float, default: 1
The scale parameter (elsewhere referred to as :math:`a_0`)
defining the extent of the quasi-linear region,
and the coordinate values beyond which the transformation
becomes asymptotically logarithmic.
base : int, default: 10
The number base used for rounding tick locations
on a logarithmic scale. If this is less than one,
then rounding is to the nearest integer multiple
of powers of ten.
subs : sequence of int
Multiples of the number base used for minor ticks.
If set to 'auto', this will use built-in defaults,
e.g. (2, 5) for base=10.
rÞN) rErrÆr]ÚintÚ_baseÚauto_tick_multipliersr�Ú_subs)rrrÈrlr�ÚkwargsrLs €rrzAsinhScale.__init__&sSø€ô( ‰Ñ˜ÔÜ(¨Ó6ˆŒÜ˜“YˆŒ
Ø �6Š>Ø×3Ñ3×7Ñ7¸¿
¹
ÓCˆD�JàˆD�Jrcó.—|jjSrN)r]rÈr s rr“zAsinhScale.<lambda>Bs€¨¯©×)EÑ)E€rcó—|jSrNrar s rr!zAsinhScale.get_transformDs €Ø�‰ÐrcóX—|jt|j|j¬«t|j|j|j¬«t «¬«|jdkDr%|j
t|j««y|j
d«y)N)rl)rlr�)Ú
major_locatorÚ
minor_locatorÚminor_formatterrCz{x:.3g})ÚsetrrÈrárãrr8rrs rr#z.AsinhScale.set_default_locators_and_formattersGs�€Ø �‰œ|¨D×,=Ñ,=Ø15·±ô =ä+¨D×,=Ñ,=Ø15·±Ø15·±ô =ô"/£ð ô 2ð �:‰:˜Š>Ø × $Ñ $Ô%<¸T¿Z¹ZÓ%HÕ Ià × $Ñ $ YÕ /r) r*r+r,r-r@rârr›rÈr!r#rWrXs@rrÕrÕsWø„ñð0 €Dð Ø Ø Ø Ø Ø Ø Øñ Ðð.1ؘvöñ8ÑEÓF€Lòö
0rrÕcó:‡—eZdZdxZZdˆfd„ Zd„Zd„Zd„ZˆxZ S)ÚLogitTransformrCcó|•—t‰|�«tjddg|¬«||_dddœ||_y)NrirhrjTFrg)rErrÚ
check_in_listÚ _nonpositivern©rrkrLs €rrzLogitTransform.__init__Ws<ø€Ü
‰ÑÔÜ ×јF FÐ+¸ÕEØ'ˆÔØ"¨EÑ2°;Ñ?ˆ�
rcóÌ—tjdd¬«5tj|d|z
z «}ddd«|jrd|dk<d|d|k<S#1swYŒ'xYw)z,logit transform (base 10), masked or clippedrtrurCNrzriè)r{r|r€rn)rrPr‚s rrQz#LogitTransform.transform_non_affine]sd€ä
�[‰[ °(Ô
;ñ 2Ü—(‘(˜6 Q¨¡ZÑ0Ó1ˆC÷ 2à �:Š:Ø$ˆC�˜!‘ Ñ Ø#ˆC��V‘ Ñ Øˆ
÷  2ð 2ús ˜AÁA#có,—t|j«SrN)ÚLogisticTransformrðr s rrSzLogitTransform.invertedfs€Ü  ×!2Ñ!2Ó3Ð3rcóL—t|«j›d|j›d�S©Nú(r‰©rqr*rðr s rrrzLogitTransform.__str__ió'€Ü�t“*×%Ñ%Ð& a¨×(9Ñ(9Ð'<¸AÐ>Ð>r©ri©
r*r+r,rUrVrrQrSrrrWrXs@rríríTs"ø„Ø Ð €J�õ@ò ò4ö?rrícó:‡—eZdZdxZZdˆfd„ Zd„Zd„Zd„ZˆxZ S)rôrCcó0•—t‰|�«||_yrN)rErrðrñs €rrzLogisticTransform.__init__psø€Ü
‰ÑÔØ'ˆÕrcó—ddd| zzz S)zlogistic transform (base 10)r¦rCryrrOs rrQz&LogisticTransform.transform_non_affinets€à�a˜" ˜w™-Ñ'Ñ(Ð(rcó,—t|j«SrN)rírðr s rrSzLogisticTransform.invertedxrÓrcóL—t|«j›d|j›d�Srörør s rrrzLogisticTransform.__str__{rùrrúrûrXs@rrôrôms!ø„Ø Ð €J�õ(ò)ò1ö?rrôcó6—eZdZdZdZd dddœd„Zd„Zd„Zd „Zy
) Ú
LogitScalezÜ
Logit scale for data between zero and one, both excluded.
This scale is similar to a log scale close to zero and to one, and almost
linear around 0.5. It maps the interval ]0, 1[ onto ]-infty, +infty[.
Úlogitz \frac{1}{2}F©Úone_halfÚ use_overlinecó@—t|«|_||_||_y)a…
Parameters