
    P/Ph                     B    d Z ddlmZ dgZ G d dej                  ZdS )z:UnitDblFormatter module containing class UnitDblFormatter.    NUnitDblFormatterc                   &    e Zd ZdZddZd Zd ZdS )r   ze
    The formatter for UnitDbl data types.

    This allows for formatting with the unit string.
    Nc                 >    t          | j                  dk    rdS |dS )Nr    .12)lenlocs)selfxposs      m/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/matplotlib/testing/jpl_units/UnitDblFormatter.py__call__zUnitDblFormatter.__call__   s$    ty>>Q2::    c                 
    |dS Nr    r
   values     r   format_data_shortz"UnitDblFormatter.format_data_short       ~~r   c                 
    |dS r   r   r   s     r   format_datazUnitDblFormatter.format_data   r   r   )N)__name__
__module____qualname____doc__r   r   r   r   r   r   r   r      sP                  r   )r   matplotlib.tickerticker__all__ScalarFormatterr   r   r   r   <module>r!      s\    @ @ " " " " " "
    v-     r   