OwlCyberSecurity - MANAGER
Edit File: StrConverter.cpython-38.pyc
U ��]� � @ s4 d Z ddlZddlmZ dgZG dd� dej�ZdS )z2StrConverter module containing class StrConverter.� N�StrConverterc @ s4 e Zd ZdZedd� �Zedd� �Zedd� �ZdS ) r a� : A matplotlib converter class. Provides matplotlib conversion functionality for string data values. Valid units for string are: - 'indexed' : Values are indexed as they are specified for plotting. - 'sorted' : Values are sorted alphanumerically. - 'inverted' : Values are inverted so that the first value is on top. - 'sorted-inverted' : A combination of 'sorted' and 'inverted' c C s dS )a� : Returns information on how to handle an axis that has string data. = INPUT VARIABLES - axis The axis using this converter. - unit The units to use for a axis with string data. = RETURN VALUE - Returns a matplotlib AxisInfo data structure that contains minor/major formatters, major/minor locators, and default label information. N� )�unit�axisr r �K/usr/lib/python3/dist-packages/matplotlib/testing/jpl_units/StrConverter.py�axisinfo s zStrConverter.axisinfoc C s� t j�| �r| S | g krg S |j}||�� kr4d}nd}|�� |�� }|�� }dd� |D �}|sjg }g }t� | �sz| g} g }| D ]}||kr�||kr�|� |� q�|D ]}|r�|� |� q�|g}q�dg| dg }ttt |���}d|d<