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

323 lines
36 KiB
Text
Raw Normal View History

<EFBFBD>
<00>Rj,i<00> <00>V<00>dZddlZddlZddlZddlZddlmZmZddl m
Z
m Z m Z m Z mZmZmZmZmZmZmZddlmZmZGd<06>d<07>ZGd<08>d e<18>ZGd
<EFBFBD>d e<16>ZGd <0C>d e<18>ZGd<0E>de<16>ZGd<10>de<16>ZGd<12>de<18>ZGd<14>de<1E>ZGd<16>de<16>Z Gd<18>de<16>Z!Gd<1A>de<18>Z"Gd<1C>de<16>Z#Gd<1E>de<16>Z$Gd <20>d!e<18>Z%Gd"<22>d#e<16>Z&Gd$<24>d%e<16>Z'Gd&<26>d'e<18>Z(eee"e%e(eed(<28>Z)d)<29>Z*d*<2A>Z+e+jr1e+jd+d,jYe-e.e*<2A><00><00>ize+_d-<2D>Z/d.<2E>Z0ejbjed/d,jYe*<2A>D<00>cgc]
}e.|<00><00><02> c}<00>ze0<65>jg<00><00>0<EFBFBD>ycc}w)1a<31>
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`.
<EFBFBD>N)<02>_api<70>
_docstring) <0B> NullFormatter<65>ScalarFormatter<65>LogFormatterSciNotation<6F>LogitFormatter<65> NullLocator<6F>
LogLocator<EFBFBD> AutoLocator<6F>AutoMinorLocator<6F>SymmetricalLogLocator<6F> AsinhLocator<6F> LogitLocator)<02> Transform<72>IdentityTransformc<00>(<00>eZdZdZd<02>Zd<03>Zd<04>Zd<05>Zy)<07> 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<00><00>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<><00><02>self<6C>axiss <20>S/home/antigravity/intellecton/venv/lib/python3.12/site-packages/matplotlib/scale.py<70>__init__zScaleBase.__init__D<00><00><00>c<00><00>t<00><00>)zL
Return the `.Transform` object associated with this scale.
<20><01>NotImplementedError<6F>rs r<00> get_transformzScaleBase.get_transformRs <00><00>"<22>#<23>#rc<00><00>t<00><00>)zi
Set the locators and formatters of *axis* to instances suitable for
this scale.
rrs r<00>#set_default_locators_and_formattersz-ScaleBase.set_default_locators_and_formattersXs <00><00>
"<22>#<23>#rc<00>
<00>||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<00>r<00>vmin<69>vmax<61>minposs r<00>limit_range_for_scalezScaleBase.limit_range_for_scale_s<00><00><14>T<EFBFBD>z<EFBFBD>rN)<08>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__rr!r#r)rrrrr.s<00><00><08>*  <0C>$<24> $<24>rrc<00>&<00>eZdZdZdZd<03>Zd<04>Zd<05>Zy)<07> LinearScalez#
The default linear scale.
<20>linearc<00><00>y)z
Nrrs rrzLinearScale.__init__qrrc<00><><00>|jt<00><00>|jt<00><00>|j t <00><00>|j dk(rtjds"|j dk(r-tjdr|jt<00><00>y|jt<00><00>y<00>N<>xzxtick.minor.visible<6C>yzytick.minor.visible<6C> <0C>set_major_locatorr <00>set_major_formatterr<00>set_minor_formatterr<00> axis_name<6D>mpl<70>rcParams<6D>set_minor_locatorr r rs rr#z/LinearScale.set_default_locators_and_formattersx<00><><00><00> <0C><1E><1E>{<7B>}<7D>-<2D> <0C> <20> <20><1F>!2<>3<> <0C> <20> <20><1D><1F>1<> <10>N<EFBFBD>N<EFBFBD>c<EFBFBD> !<21>c<EFBFBD>l<EFBFBD>l<EFBFBD>3H<33>&I<><14><0E><0E>#<23>%<25>#<23>,<2C>,<2C>7L<37>*M<> <10> "<22> "<22>#3<>#5<> 6<> <10> "<22> "<22>;<3B>=<3D> 1rc<00><00>t<00>S)z<>
Return the transform for linear scaling, which is just the
`~matplotlib.transforms.IdentityTransform`.
)rr s rr!zLinearScale.get_transform<72>s <00><00>
!<21>"<22>"rN)r*r+r,r-<00>namerr#r!rrrr/r/js<00><00><08> <14>D<EFBFBD> <0C>
2<>#rr/c<00>6<00><00>eZdZdZdxZZ<05>fd<03>Zd<04>Zd<05>Z<08>xZ S)<06> FuncTransformzi
A simple transform that takes and arbitrary function for the
forward and inverse transform.
<20>c<00><><00><01>t<00>|<00><00>t|<01>rt|<02>r||_||_yt d<01><00>)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)<06>superr<00>callable<6C>_forward<72>_inverse<73>
ValueError)r<00>forward<72>inverse<73> __class__s <20>rrzFuncTransform.__init__<5F>s9<00><><00> <0E><07><18><1A> <13>G<EFBFBD> <1C><18>'<27>!2<>#<23>D<EFBFBD>M<EFBFBD>#<23>D<EFBFBD>M<EFBFBD><1C>K<>L<> Lrc<00>$<00>|j|<01>S<00>N)rG<00>r<00>valuess r<00>transform_non_affinez"FuncTransform.transform_non_affine<6E>s<00><00><13>}<7D>}<7D>V<EFBFBD>$<24>$rc<00>B<00>t|j|j<00>SrN)rBrHrGr s r<00>invertedzFuncTransform.inverted<65>s<00><00><1C>T<EFBFBD>]<5D>]<5D>D<EFBFBD>M<EFBFBD>M<EFBFBD>:<3A>:r<00>
r*r+r,r-<00>
input_dims<EFBFBD> output_dimsrrQrS<00> __classcell__<5F>rLs@rrBrB<00>s$<00><><00><08>
!<21> <20>J<EFBFBD><1B>M<01>*%<25>;rrBc<00>&<00>eZdZdZdZd<03>Zd<04>Zd<05>Zy)<07> FuncScalezN
Provide an arbitrary scale with user-supplied function for the axis.
<20>functionc<00>4<00>|\}}t||<04>}||_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<00>
_transform)rr<00> functionsrJrK<00> transforms rrzFuncScale.__init__<5F>s!<00><00>%<25><18><07><17>!<21>'<27>7<EFBFBD>3<> <09>#<23><04>rc<00><00>|jS)z7Return the `.FuncTransform` associated with this scale.<2E>r]r s rr!zFuncScale.get_transform<72><00> <00><00><13><EFBFBD><EFBFBD>rc<00><><00>|jt<00><00>|jt<00><00>|j t <00><00>|j dk(rtjds"|j dk(r-tjdr|jt<00><00>y|jt<00><00>yr3r6rs rr#z-FuncScale.set_default_locators_and_formatters<72>r>rN)r*r+r,r-r@rr!r#rrrrZrZ<00>s<00><00><08> <16>D<EFBFBD>$<24>$<1F>
2rrZc<00>:<00><00>eZdZdxZZd<06>fd<02> Zd<03>Zd<04>Zd<05>Z<08>xZ S)<07> LogTransformrCc<00><><00><01>t<00>|<00><00>|dks|dk(r td<03><00>||_t j
ddd<06>|<02><07>|_y)NrrCz#The log base cannot be <= 0 or == 1TF<54><02>clip<69>mask<73><01> nonpositive)rErrI<00>baser<00> check_getitem<65>_clip)rrlrkrLs <20>rrzLogTransform.__init__<5F>sK<00><><00> <0A><07><18><1A> <0F>1<EFBFBD>9<EFBFBD><04><01> <09><1C>B<>C<> C<><18><04> <09><19>'<27>'<27><19>5<EFBFBD> )<29>{<7B>D<01><04>
rc<00><><00>djt|<00>j|j|jrd<02>Sd<03>S)Nz{}(base={}, nonpositive={!r})rhri)<05>format<61>typer*rlrnr s r<00>__str__zLogTransform.__str__<5F>sA<00><00>.<2E>5<>5<> <10><14>J<EFBFBD> <1F> <1F><14><19><19>d<EFBFBD>j<EFBFBD>j<EFBFBD>F<EFBFBD>N<01> N<01>FL<46>N<01> Nrc<00><><00>tjdd<01><02>5tjtjdtjdtj
ij |j<00>}|r ||<01>}n7tj|<01>}|tj|j<00>z}|jrd||dk<ddd<00>|S#1swYSxYw)N<>ignore<72><02>divide<64>invalid<69><00>
<00><18><><EFBFBD>r) <09>np<6E>errstate<74>e<>log<6F>log2<67>log10<31>getrlrn)rrPr~<00>outs rrQz!LogTransform.transform_non_affine<6E>s<><00><00> <0F>[<5B>[<5B><08>(<28> ;<3B> )<29><15>4<EFBFBD>4<EFBFBD><12><16><16><11>B<EFBFBD>G<EFBFBD>G<EFBFBD>R<EFBFBD><12><18><18>:<3A>><3E>><3E>t<EFBFBD>y<EFBFBD>y<EFBFBD>I<>C<EFBFBD><12><19>&<26>k<EFBFBD><03><18>f<EFBFBD>f<EFBFBD>V<EFBFBD>n<EFBFBD><03><13>r<EFBFBD>v<EFBFBD>v<EFBFBD>d<EFBFBD>i<EFBFBD>i<EFBFBD>(<28>(<28><03><13>z<EFBFBD>z<EFBFBD>$)<29><03>F<EFBFBD>a<EFBFBD>K<EFBFBD> <20># )<29>$<13>
<EFBFBD>% )<29>$<13>
<EFBFBD>s <00>B0C<03>Cc<00>,<00>t|j<00>SrN)<02>InvertedLogTransformrlr s rrSzLogTransform.inverted<65>s<00><00>#<23>D<EFBFBD>I<EFBFBD>I<EFBFBD>.<2E>.r)rh<00>
r*r+r,rUrVrrrrQrSrWrXs@rrere<00>s#<00><><00> <20> <20>J<EFBFBD><1B>D<01>N<01><13>,/rrec<00>8<00><00>eZdZdxZZ<04>fd<02>Zd<03>Zd<04>Zd<05>Z<08>xZ S)r<>rCc<00>0<00><01>t<00>|<00><00>||_yrN)rErrl)rrlrLs <20>rrzInvertedLogTransform.__init__s<00><><00> <0A><07><18><1A><18><04> rc<00>L<00>t|<00>j<00>d|j<00>d<02>S)Nz(base=<3D>))rqr*rlr s rrrzInvertedLogTransform.__str__
s$<00><00><16>t<EFBFBD>*<2A>%<25>%<25>&<26>f<EFBFBD>T<EFBFBD>Y<EFBFBD>Y<EFBFBD>K<EFBFBD>q<EFBFBD>9<>9rc<00>B<00>tj|j|<01>SrN)r{<00>powerrlrOs rrQz)InvertedLogTransform.transform_non_affine s<00><00><11>x<EFBFBD>x<EFBFBD><04> <09> <09>6<EFBFBD>*<2A>*rc<00>,<00>t|j<00>SrN)rerlr s rrSzInvertedLogTransform.inverteds<00><00><1B>D<EFBFBD>I<EFBFBD>I<EFBFBD>&<26>&rr<>rXs@rr<>r<>s!<00><><00> <20> <20>J<EFBFBD><1B><19>:<3A>+<2B>'rr<>c<00>H<00>eZdZdZdZdddd<06>d<07>Zed<08><00>Zd <09>Zd
<EFBFBD>Z d <0B>Z
y) <0C>LogScalezT
A standard logarithmic scale. Care is taken to only plot positive values.
r~ryNrh)rl<00>subsrkc<00>4<00>t||<04>|_||_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<00><00> '<27>t<EFBFBD>[<5B>9<><04><0F><18><04> rc<00>.<00>|jjSrN<00>r]rlr s r<00><lambda>zLogScale.<lambda>-<00><00><00><14><1F><1F>!5<>!5<>rc<00>V<00>|jt|j<00><00>|jt |j<00><00>|j t|j|j <00><00>|jt |j|j du<01><01><00>y)N)<01> labelOnlyBase)r7r
rlr8rr=r<>r9rs rr#z,LogScale.set_default_locators_and_formatters/sx<00><00> <0C><1E><1E>z<EFBFBD>$<24>)<29>)<29>4<>5<> <0C> <20> <20>!8<><14><19><19>!C<>D<> <0C><1E><1E>z<EFBFBD>$<24>)<29>)<29>T<EFBFBD>Y<EFBFBD>Y<EFBFBD>?<3F>@<40> <0C> <20> <20> #<23>D<EFBFBD>I<EFBFBD>I<EFBFBD>37<33>9<EFBFBD>9<EFBFBD>D<EFBFBD>3H<33> K<01> Lrc<00><00>|jS)z6Return the `.LogTransform` associated with this scale.rar s rr!zLogScale.get_transform8rbrc<00>V<00>tj|<03>sd}|dkr|n||dkr|fS|fS)z$Limit the domain to positive values.gY<67><59><EFBFBD>n<>r<00>r{<00>isfiniter%s rr)zLogScale.limit_range_for_scale<s><00><00><11>{<7B>{<7B>6<EFBFBD>"<22><1B>F<EFBFBD><1E>!<21>)<29><06><14><1E>!<21>)<29><06>/<2F> /<2F>)-<2D>/<2F> /r) r*r+r,r-r@r<00>propertyrlr#r!r)rrrr<>r<>s7<00><00><08> <11>D<EFBFBD>%'<27>d<EFBFBD><06><19>& <14>5<> 6<>D<EFBFBD>L<01><1F>/rr<>c<00>2<00>eZdZdZdZdd<03>Zed<04><00>Zd<05>Zy)<08> FuncScaleLogzu
Provide an arbitrary scale with user-supplied function for the axis and
then put on a logarithmic axes.
<20> functionlogc<00>V<00>|\}}d|_t||<05>t|<03>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-<00><00>"%<25><18><07><17><18><04> <09>'<27><07><17>9<>L<EFBFBD><14><N<>N<><04>rc<00>B<00>|jjjSrN)r]<00>_brlr s rrlzFuncScaleLog.basebs<00><00><13><EFBFBD><EFBFBD>!<21>!<21>&<26>&<26>&rc<00><00>|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-<00><00><08>
<19>D<EFBFBD>O<01>*<0E>'<27><0E>'<27>rr<>c<00>2<00><00>eZdZdxZZ<04>fd<02>Zd<03>Zd<04>Z<07>xZS)<05>SymmetricalLogTransformrCc<00><00><01>t<00>|<00><00>|dkr td<02><00>|dkr td<04><00>|dkr td<05><00>||_||_||_|d|jdzz
z |_tj|<01>|_ y)N<><00>?z'base' must be larger than 1<>z'linthresh' must be positivez'linscale' must be positive<76><65><EFBFBD><EFBFBD><EFBFBD>)
rErrIrl<00> linthresh<73>linscale<6C> _linscale_adjr{r~<00> _log_base)rrlr<>r<>rLs <20>rrz SymmetricalLogTransform.__init__ns<><00><><00> <0A><07><18><1A> <0F>3<EFBFBD>;<3B><1C>;<3B><<3C> <<3C> <14><03> <1B><1C>;<3B><<3C> <<3C> <13>s<EFBFBD>?<3F><1C>:<3A>;<3B> ;<3B><18><04> <09>"<22><04><0E> <20><04> <0A>&<26>#<23><04> <09> <09>R<EFBFBD><0F>*?<3F>@<40><04><1A><1B><16><16><04><1C><04>rc<00><><00>tj|<01>}tjdd<01><02>5tj|<01>|jz|j
tj ||jz <00>|jz zz}||jk}ddd<00>||j
z|<|S#1swY<00> xYw<01>Nrtru)r{<00>absr|<00>signr<6E>r<>r~r<><00>rrP<00>abs_ar<61><00>insides rrQz,SymmetricalLogTransform.transform_non_affine|s<><00><00><12><06><06>v<EFBFBD><0E><05> <0F>[<5B>[<5B><08>(<28> ;<3B> -<2D><14>'<27>'<27>&<26>/<2F>D<EFBFBD>N<EFBFBD>N<EFBFBD>2<><14>"<22>"<22><12><06><06>u<EFBFBD>t<EFBFBD>~<7E>~<7E>-<2D>.<2E><14><1E><1E>?<3F>@<01>A<01>C<EFBFBD><1B>d<EFBFBD>n<EFBFBD>n<EFBFBD>,<2C>F<EFBFBD>  -<2D>
<1D>V<EFBFBD>n<EFBFBD>t<EFBFBD>'9<>'9<>9<><03>F<EFBFBD> <0B><12>
<EFBFBD>  -<2D> -<2D>s <00>A/B;<03>;Cc<00>X<00>t|j|j|j<00>SrN)<04>InvertedSymmetricalLogTransformrlr<>r<>r s rrSz SymmetricalLogTransform.inverted<65>s"<00><00>.<2E>t<EFBFBD>y<EFBFBD>y<EFBFBD>$<24>.<2E>.<2E>/3<>}<7D>}<7D>><3E> >r<00> r*r+r,rUrVrrQrSrWrXs@rr<>r<>ks<00><><00> <20> <20>J<EFBFBD><1B> &<26><13>>rr<>c<00>2<00><00>eZdZdxZZ<04>fd<02>Zd<03>Zd<04>Z<07>xZS)r<>rCc<00><><00><01>t<00>|<00><00>t|||<03>}||_||_|j |<02>|_||_|d|jdzz
z |_y)Nr<4E>r<>) rErr<>rlr<>r_<00> invlinthreshr<68>r<>)rrlr<>r<><00>symlogrLs <20>rrz(InvertedSymmetricalLogTransform.__init__<5F>s^<00><><00> <0A><07><18><1A>(<28><14>y<EFBFBD>(<28>C<><06><18><04> <09>"<22><04><0E>"<22>,<2C>,<2C>Y<EFBFBD>7<><04><19> <20><04> <0A>&<26>#<23><04> <09> <09>R<EFBFBD><0F>*?<3F>@<40><04>rc<00><><00>tj|<01>}tjdd<01><02>5tj|<01>|jztj
|j ||jz |jz
<00>z}||jk}ddd<00>||jz |<|S#1swY<00> xYwr<>) r{r<>r|r<>r<>r<>rlr<>r<>r<>s rrQz4InvertedSymmetricalLogTransform.transform_non_affine<6E>s<><00><00><12><06><06>v<EFBFBD><0E><05> <0F>[<5B>[<5B><08>(<28> ;<3B> 0<><14>'<27>'<27>&<26>/<2F>D<EFBFBD>N<EFBFBD>N<EFBFBD>2<><12><08><08><14><19><19><1E><14><1E><1E>/<2F>$<24>2D<32>2D<32>D<>F<01>G<01>C<EFBFBD><1B>d<EFBFBD>/<2F>/<2F>/<2F>F<EFBFBD>  0<>
<1D>V<EFBFBD>n<EFBFBD>t<EFBFBD>'9<>'9<>9<><03>F<EFBFBD> <0B><12>
<EFBFBD>  0<> 0<>s <00>A-B9<03>9Cc<00>X<00>t|j|j|j<00>SrN)r<>rlr<>r<>r s rrSz(InvertedSymmetricalLogTransform.inverted<65>s$<00><00>&<26>t<EFBFBD>y<EFBFBD>y<EFBFBD>'+<2B>~<7E>~<7E>t<EFBFBD>}<7D>}<7D>F<01> Frr<>rXs@rr<>r<><00>s<00><><00> <20> <20>J<EFBFBD><1B>B<01><13>Frr<>c<00>h<00>eZdZdZdZddddd<07>d<08>Zed <09><00>Zed
<EFBFBD><00>Zed <0B><00>Z d <0C>Z
d <0A>Z y)<0E>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<00>6<00>t|||<05>|_||_yrN)r<>r]r<>)rrrlr<>r<>r<>s rrzSymmetricalLogScale.__init__<5F>s<00><00>1<>$<24> <09>8<EFBFBD>L<><04><0F><18><04> rc<00>.<00>|jjSrNr<>r s rr<>zSymmetricalLogScale.<lambda><3E>r<>rc<00>.<00>|jjSrN)r]r<>r s rr<>zSymmetricalLogScale.<lambda><3E>s<00><00>d<EFBFBD>o<EFBFBD>o<EFBFBD>&?<3F>&?<3F>rc<00>.<00>|jjSrN)r]r<>r s rr<>zSymmetricalLogScale.<lambda><3E>s<00><00>T<EFBFBD>_<EFBFBD>_<EFBFBD>%=<3D>%=<3D>rc<00>4<00>|jt|j<00><00><00>|jt |j
<00><00>|j t|j<00>|j<00><00>|jt<00><00>yrN)
r7r r!r8rrlr=r<>r9rrs rr#z7SymmetricalLogScale.set_default_locators_and_formatters<72>sq<00><00> <0C><1E><1E>4<>T<EFBFBD>5G<35>5G<35>5I<35>J<>K<> <0C> <20> <20>!8<><14><19><19>!C<>D<> <0C><1E><1E>4<>T<EFBFBD>5G<35>5G<35>5I<35>59<35>Y<EFBFBD>Y<EFBFBD> @<01> A<01> <0C> <20> <20><1D><1F>1rc<00><00>|jS)zAReturn the `.SymmetricalLogTransform` associated with this scale.rar s rr!z!SymmetricalLogScale.get_transform<72>rbr) r*r+r,r-r@rr<>rlr<>r<>r#r!rrrr<>r<><00>sJ<00><00> <08>B <14>D<EFBFBD>%'<27>1<EFBFBD>4<EFBFBD>!<21><19> <14>5<> 6<>D<EFBFBD><18>?<3F>@<40>I<EFBFBD><17>=<3D>><3E>H<EFBFBD>2<>rr<>c<00>6<00><00>eZdZdZdxZZ<05>fd<03>Zd<04>Zd<05>Z<08>xZ S)<06>AsinhTransformz<Inverse hyperbolic-sine transformation used by `.AsinhScale`rCc<00>P<00><01>t<00>|<00><00>|dkr td<02><00>||_y)Nr<4E>z8Scale parameter 'linear_width' must be strictly positive)rErrI<00> linear_width<74>rr<>rLs <20>rrzAsinhTransform.__init__<5F>s0<00><><00> <0A><07><18><1A> <17>3<EFBFBD> <1E><1C>9<>:<3A> :<3A>(<28><04>rc<00>`<00>|jtj||jz <00>zSrN)r<>r{<00>arcsinhrOs rrQz#AsinhTransform.transform_non_affine<6E>s'<00><00><13> <20> <20>2<EFBFBD>:<3A>:<3A>f<EFBFBD>t<EFBFBD>7H<37>7H<37>.H<>#I<>I<>Irc<00>,<00>t|j<00>SrN)<02>InvertedAsinhTransformr<6D>r s rrSzAsinhTransform.inverted<65>s<00><00>%<25>d<EFBFBD>&7<>&7<>8<>8rrTrXs@rr<>r<><00>s <00><><00>F<> <20> <20>J<EFBFBD><1B>)<29>J<01>9rr<>c<00>6<00><00>eZdZdZdxZZ<05>fd<03>Zd<04>Zd<05>Z<08>xZ S)r<>z4Hyperbolic sine transformation used by `.AsinhScale`rCc<00>0<00><01>t<00>|<00><00>||_yrN)rErr<>r<>s <20>rrzInvertedAsinhTransform.__init__<5F>s<00><><00> <0A><07><18><1A>(<28><04>rc<00>`<00>|jtj||jz <00>zSrN)r<>r{<00>sinhrOs rrQz+InvertedAsinhTransform.transform_non_affine<6E>s'<00><00><13> <20> <20>2<EFBFBD>7<EFBFBD>7<EFBFBD>6<EFBFBD>D<EFBFBD>4E<34>4E<34>+E<>#F<>F<>Frc<00>,<00>t|j<00>SrN)r<>r<>r s rrSzInvertedAsinhTransform.inverted<65><00><00><00><1D>d<EFBFBD>/<2F>/<2F>0<>0rrTrXs@rr<>r<><00>s <00><><00>><3E> <20> <20>J<EFBFBD><1B>)<29>G<01>1rr<>c <00>d<00><00>eZdZdZdZddddddddd <09>Zd
d d d <0A><03>fd<0E>
Zed<0F><00>Zd<10>Z d<11>Z
<EFBFBD>xZ S)<12>
AsinhScalea<EFBFBD>
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.
<20>asinh)rx)rx<00>)rx<00>)rxr<><00>)r<><00>)<02>i)<08>r<>r<>r<>ryr<><00>@ir<>ry<00>auto)r<>rlr<>c <00><><00><01>t<00>|<00>|<01>t|<02>|_t |<03>|_|dk(r+|j j|j
<00>|_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]<00>int<6E>_base<73>auto_tick_multipliersr<73><00>_subs)rrr<>rlr<><00>kwargsrLs <20>rrzAsinhScale.__init__&sS<00><><00>( <0E><07><18><14><1E>(<28><1C>6<><04><0F><18><14>Y<EFBFBD><04>
<EFBFBD> <0F>6<EFBFBD>><3E><1D>3<>3<>7<>7<><04>
<EFBFBD>
<EFBFBD>C<>D<EFBFBD>J<EFBFBD><1D>D<EFBFBD>Jrc<00>.<00>|jjSrN)r]r<>r s rr<>zAsinhScale.<lambda>Bs<00><00><14><1F><1F>)E<>)E<>rc<00><00>|jSrNrar s rr!zAsinhScale.get_transformDs <00><00><13><EFBFBD><EFBFBD>rc<00>X<00>|jt|j|j<00><01>t|j|j|j<00><02>t <00><00><03>|jdkDr%|j t|j<00><00>y|j d<05>y)N)rl)rlr<>)<03> major_locator<6F> minor_locator<6F>minor_formatterrCz{x:.3g})<08>setrr<>r<>r<>rr8rrs rr#z.AsinhScale.set_default_locators_and_formattersGs<><00><00> <0C><08><08>|<7C>D<EFBFBD>,=<3D>,=<3D>15<31><1A><1A> =<3D>+<2B>D<EFBFBD>,=<3D>,=<3D>15<31><1A><1A>15<31><1A><1A> =<3D>"/<2F><1F> <11> 2<> <10>:<3A>:<3A><01>><3E> <10> $<24> $<24>%<<3C>T<EFBFBD>Z<EFBFBD>Z<EFBFBD>%H<> I<> <10> $<24> $<24>Y<EFBFBD> /r) r*r+r,r-r@r<>rr<>r<>r!r#rWrXs@rr<>r<>sW<00><><00><08>0 <13>D<EFBFBD> <11> <10> <10> <11> <12> <15> <13><18> <06><19>.1<EFBFBD><18>v<EFBFBD><1E>8<1C>E<>F<>L<EFBFBD><1F>
0rr<>c<00>:<00><00>eZdZdxZZd<06>fd<02> Zd<03>Zd<04>Zd<05>Z<08>xZ S)<07>LogitTransformrCc<00>|<00><01>t<00>|<00><00>tjddg|<01><03>||_ddd<06>||_y)NrirhrjTFrg)rErr<00> check_in_list<73> _nonpositivern<00>rrkrLs <20>rrzLogitTransform.__init__Ws<<00><><00> <0A><07><18><1A> <0C><1A><1A>F<EFBFBD>F<EFBFBD>+<2B><1B>E<>'<27><04><19>"<22>E<EFBFBD>2<>;<3B>?<3F><04>
rc<00><><00>tjdd<01><02>5tj|d|z
z <00>}ddd<04>|jrd|dk<d|d|k<S#1swY<00>'xYw)z,logit transform (base 10), masked or clippedrtrurCNrzri<>)r{r|r<>rn)rrPr<>s rrQz#LogitTransform.transform_non_affine]sd<00><00> <0F>[<5B>[<5B><08>(<28> ;<3B> 2<><14>(<28>(<28>6<EFBFBD>Q<EFBFBD><16>Z<EFBFBD>0<>1<>C<EFBFBD> 2<> <0F>:<3A>:<3A>$<24>C<EFBFBD><06>!<21> <0B> <1C>#<23>C<EFBFBD><01>V<EFBFBD> <0B> <1C><12>
<EFBFBD>  2<> 2<>s <00>A<03>A#c<00>,<00>t|j<00>SrN)<02>LogisticTransformr<6D>r s rrSzLogitTransform.invertedfs<00><00> <20><14>!2<>!2<>3<>3rc<00>L<00>t|<00>j<00>d|j<00>d<02>S<00>N<>(r<><00>rqr*r<>r s rrrzLogitTransform.__str__i<00>'<00><00><16>t<EFBFBD>*<2A>%<25>%<25>&<26>a<EFBFBD><04>(9<>(9<>'<<3C>A<EFBFBD>><3E>>r<00>ri<00>
r*r+r,rUrVrrQrSrrrWrXs@rr<>r<>Ts"<00><><00> <20> <20>J<EFBFBD><1B>@<01> <13>4<>?rr<>c<00>:<00><00>eZdZdxZZd<06>fd<02> Zd<03>Zd<04>Zd<05>Z<08>xZ S)r<>rCc<00>0<00><01>t<00>|<00><00>||_yrN)rErr<>r<>s <20>rrzLogisticTransform.__init__ps<00><><00> <0A><07><18><1A>'<27><04>rc<00><00>ddd| zzz S)zlogistic transform (base 10)r<>rCryrrOs rrQz&LogisticTransform.transform_non_affinets<00><00><12>a<EFBFBD>"<22><06>w<EFBFBD>-<2D>'<27>(<28>(rc<00>,<00>t|j<00>SrN)r<>r<>r s rrSzLogisticTransform.invertedxr<>rc<00>L<00>t|<00>j<00>d|j<00>d<02>Sr<>r<>r s rrrzLogisticTransform.__str__{r<>rr<>r<>rXs@rr<>r<>ms!<00><><00> <20> <20>J<EFBFBD><1B>(<28>)<29>1<>?rr<>c<00>6<00>eZdZdZdZd ddd<05>d<06>Zd<07>Zd<08>Zd <09>Zy
) <0C>
LogitScalez<EFBFBD>
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[.
<20>logitz \frac{1}{2}F<><02>one_half<6C> use_overlinec<00>@<00>t|<02>|_||_||_y)a<>
Parameters
----------
axis : `~matplotlib.axis.Axis`
Currently unused.
nonpositive : {'mask', 'clip'}
Determines the behavior for values beyond the open interval ]0, 1[.
They can either be masked as invalid, or clipped to a number very
close to 0 or 1.
use_overline : bool, default: False
Indicate the usage of survival notation (\overline{x}) in place of
standard notation (1-x) for probability close to one.
one_half : str, default: r"\frac{1}{2}"
The string used for ticks formatter to represent 1/2.
N)r<>r]<00> _use_overline<6E> _one_half)rrrkrrs rrzLogitScale.__init__<5F>s<00><00>")<29><1B>5<><04><0F>)<29><04><1A>!<21><04>rc<00><00>|jS)z8Return the `.LogitTransform` associated with this scale.rar s rr!zLogitScale.get_transform<72>rbrc<00>.<00>|jt<00><00>|jt|j|j
<00><01><00>|j td<02><03><00>|jtd|j|j
<00><04><00>y)NrT)<01>minor)r rr)r7rr8rr rr=r9rs rr#z.LogitScale.set_default_locators_and_formatters<72>sx<00><00> <0A><1E><1E>|<7C>~<7E>.<2E> <0C> <20> <20> <1A><1D><1E><1E>!<21>/<2F>/<2F> <0E>
<EFBFBD> <0A><1E><1E>|<7C>$<24>7<>8<> <0C> <20> <20> <1A><1A><1D><1E><1E>!<21>/<2F>/<2F> <0E>
rc<00>\<00>tj|<03>sd}|dkr|n||dk\rd|z
fS|fS)zH
Limit the domain to values between 0 and 1 (excluded).
gH<67><48><EFBFBD><EFBFBD><EFBFBD>z>rrCr<>r%s rr)z LogitScale.limit_range_for_scale<6C>sD<00><00><12>{<7B>{<7B>6<EFBFBD>"<22><19>F<EFBFBD><1E>!<21>)<29><06><14>"<22>a<EFBFBD>i<EFBFBD><01>F<EFBFBD>
<EFBFBD>3<> 3<>-1<>3<> 3rNr<4E>) r*r+r,r-r@rr!r#r)rrrrrs,<00><00><08> <13>D<EFBFBD>"<22>(<28>u<EFBFBD>"<22>*<1F>
<EFBFBD>&3rr)r0r~r<>r<>rr[r<>c<00> <00>tt<00>S)z)Return the names of the available scales.)<02>sorted<65>_scale_mappingrrr<00>get_scale_namesr<00>s <00><00> <11>.<2E> !<21>!rc <00>J<00>tjt|<00><01>}||fi|<02><01>S)z<>
Return a scale class by name.
Parameters
----------
scale : {%(names)s}
axis : `~matplotlib.axis.Axis`
)<01>scale)rrmr)rrr<><00> scale_clss r<00> scale_factoryr<00>s&<00><00><15>"<22>"<22>><3E><15>?<3F>I<EFBFBD> <14>T<EFBFBD> $<24>V<EFBFBD> $<24>$r<00>namesz, c<00>*<00>|t|j<y)z<>
Register a new kind of scale.
Parameters
----------
scale_class : subclass of `ScaleBase`
The scale to register.
N)rr@)<01> scale_classs r<00>register_scaler<00>s<00><00>(3<>N<EFBFBD>;<3B>#<23>#<23>$rc <00><><00>g}tj<00>D]T\}}tj|j<00>xsd}|j d|<01><02>dt j|d<03>dg<04><00>Vdj|<00>S)zF
Helper function for generating docstrings related to scales.
<20>z z <20>
) r<00>items<6D>inspect<63>getdocr<00>extend<6E>textwrap<61>indent<6E>join)<04>docsr@r<00> docstrings r<00>_get_scale_docsr&<00>s}<00><00> <0E>D<EFBFBD>+<2B>1<>1<>3<> <0B><19><04>k<EFBFBD><1B>N<EFBFBD>N<EFBFBD>;<3B>#7<>#7<>8<>><3E>B<EFBFBD> <09> <0C> <0B> <0B><12>4<EFBFBD>(<28>O<EFBFBD> <0E> <14>O<EFBFBD>O<EFBFBD>I<EFBFBD>w<EFBFBD> /<2F> <0E> 
<EFBFBD> <0B> <0B> <10>9<EFBFBD>9<EFBFBD>T<EFBFBD>?<3F>rz{%s})<02>
scale_type<EFBFBD>
scale_docs)4r-rr!<00>numpyr{<00>
matplotlibr;rr<00>matplotlib.tickerrrrrr r
r r r rr<00>matplotlib.transformsrrrr/rBrZrer<>r<>r<>r<>r<>r<>r<>r<>r<>r<>r<>rrrrr#<00>map<61>reprrr&<00>interpd<70>register<65>rstrip)r4s0r<00><module>r2s<><00><01><04>><0F><0F><12><18>'<27>7<>7<>7<>7<>?<3F>9<1A>9<1A>x#<23>)<29>#<23>D!;<3B>I<EFBFBD>!;<3B>H'2<> <09>'2<>T&/<2F>9<EFBFBD>&/<2F>R'<27>9<EFBFBD>'<27>"./<2F>y<EFBFBD>./<2F>b#<1F>8<EFBFBD>#<1F>L><3E>i<EFBFBD>><3E>@F<01>i<EFBFBD>F<01>66<1F>)<29>6<1F>r9<>Y<EFBFBD>9<>$ 1<>Y<EFBFBD> 1<>Q0<><19>Q0<>h?<3F>Y<EFBFBD>?<3F>2?<3F> <09>?<3F>$<3<><19><3<>@<1A><16>!<21><18><18><19><1F><06><0E>"<22>
%<25><11><18><18>)<29>1<>1<><0F><14><19><19>3<EFBFBD>t<EFBFBD>_<EFBFBD>%6<>7<>8<>5:<3A>:<3A>M<EFBFBD><19> 3<> <1B>  <0B><12><12><1B><1B><15><04> <09> <09>O<EFBFBD>4E<34>"F<>q<EFBFBD>4<EFBFBD><01>7<EFBFBD>"F<>G<>G<><1E> <20>'<27>'<27>)<29><1C><06><>"Fs<00>4F&