| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/matplotlib/__pycache__/ |
Upload File : |
�
G8�c�d � �V � d Z ddlZddlZddlZddlZddlmZmZ ddl m
Z
mZmZm
Z
mZmZmZmZmZmZmZ ddlmZmZ G d� d� Z G d� d e� Z G d
� de� Z G d� d
e� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z! G d� de� Z" G d� de� Z# G d� de� Z$ G d � d!e� Z% G d"� d#e� Z& G d$� d%e� Z' G d&� d'e� Z(eee"e%e(eed(�Z)d)� Z*d*� Z+e+j r1e+j d+d,jY e-e. e*� � � iz e+_ d-� Z/d.� Z0ejb je d/d,jY e*� D � cg c]
} e.| � �� c} � z e0� jg � �0� yc c} w )1a�
Scales define the distribution of data values on an axis, e.g. a log scaling.
They are defined as subclasses of `ScaleBase`.
See also `.axes.Axes.set_xscale` and the scales examples in the documentation.
See :doc:`/gallery/scales/custom_scale` for a full example of defining a custom
scale.
Matplotlib also supports non-separable transformations that operate on both
`~.axis.Axis` at the same time. They are known as projections, and defined in
`matplotlib.projections`.
� N)�_api�
_docstring)�
NullFormatter�ScalarFormatter�LogFormatterSciNotation�LogitFormatter�NullLocator�
LogLocator�AutoLocator�AutoMinorLocator�SymmetricalLogLocator�AsinhLocator�LogitLocator)� Transform�IdentityTransformc �( � e Zd ZdZd� 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 implementors.
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 �2/usr/lib/python3/dist-packages/matplotlib/scale.py�__init__zScaleBase.__init__3 � � � c � � t � �)zL
Return the `.Transform` object associated with this scale.
��NotImplementedError�r s r �
get_transformzScaleBase.get_transformA s
� � "�#�#r c � � t � �)zi
Set the locators and formatters of *axis* to instances suitable for
this scale.
r r s r �#set_default_locators_and_formattersz-ScaleBase.set_default_locators_and_formattersG s
� �
"�#�#r c �
� ||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_scaleN s � � �T�z�r N)�__name__�
__module__�__qualname__�__doc__r r! r# r) r r r r r s � ��*�$�$�r r c �&