OwlCyberSecurity - MANAGER
Edit File: scale.cpython-38.pyc
U ��]�^ � @ s� d dl Z d dlZd dlZd dlmZ d dlmZmZmZ d dl m Z mZmZm Z mZmZmZmZmZmZ d dlmZmZ G dd� de�ZG dd � d e�ZG d d� de�ZG dd � d e�Zejddd�G dd� de��Zejddd�G dd� de��Zejddd�G dd� de��Zejddd�G dd� de��Z ejddd�G dd� de��Z!ejddd�G dd� de��Z"ejddd�G dd� de��Z#ejddd�G d d!� d!e��Z$G d"d� de�Z%G d#d� de�Z&G d$d%� d%e�Z'G d&d'� d'e'�Z(G d(d)� d)e�Z)G d*d+� d+e�Z*G d,d-� d-e�Z+G d.d/� d/e�Z,G d0d1� d1e�Z-G d2d3� d3e�Z.ee'e+e.ee(d4�Z/d5d6� Z0d7d8� Z1e1j2�r�e1j2d9d:�3e0� �i e1_2d;d<� Z4ejdd=d>�d?d@� �Z5dAdB� Z6ej7j8dC�3dDdE� e0� D ��e6� �9� dF� dS )G� N)�ma)�cbook� docstring�rcParams) � NullFormatter�ScalarFormatter�LogFormatterSciNotation�LogitFormatter�NullLocator� LogLocator�AutoLocator�AutoMinorLocator�SymmetricalLogLocator�LogitLocator)� Transform�IdentityTransformc @ s0 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd S )� ScaleBasea@ 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` - :meth:`set_default_locators_and_formatters` And optionally: - :meth:`limit_range_for_scale` c K s dS )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�axis�kwargsr r �2/usr/lib/python3/dist-packages/matplotlib/scale.py�__init__ s zScaleBase.__init__c C s t � �dS )zq Return the :class:`~matplotlib.transforms.Transform` object associated with this scale. N��NotImplementedError�r r r r � get_transform- s zScaleBase.get_transformc C s t � �dS )z� Set the :class:`~matplotlib.ticker.Locator` and :class:`~matplotlib.ticker.Formatter` objects on the given axis to match this scale. Nr �r r r r r �#set_default_locators_and_formatters4 s z-ScaleBase.set_default_locators_and_formattersc C s ||fS )z� 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. r �r ZvminZvmaxZminposr r r �limit_range_for_scale<