
    G8c                     D    d Z ddlmZ dgZ G d dej                        Zy)z:UnitDblFormatter module containing class UnitDblFormatter.    NUnitDblFormatterc                   $    e Zd ZdZddZd Zd Zy)r   ze
    The formatter for UnitDbl data types.

    This allows for formatting with the unit string.
    Nc                 V    t        | j                        dk(  rydj                  |      S )Nr    {:.12})lenlocsformat)selfxposs      O/usr/lib/python3/dist-packages/matplotlib/testing/jpl_units/UnitDblFormatter.py__call__zUnitDblFormatter.__call__   s$    tyy>Q??1%%    c                 $    dj                  |      S Nr   r
   r   values     r   format_data_shortz"UnitDblFormatter.format_data_short       u%%r   c                 $    dj                  |      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      s    &&&r   )r   matplotlib.tickerticker__all__ScalarFormatterr   r   r   r   <module>r#      s%    @ "
&v-- &r   