U
    Ñtœd½  ã                   @   s2   d dl mZ d dlmZ dZdZedœdd„ZdS )	é    )Ú
FakeModule)ÚAny)Úfind_matplotlibzrestructuredtext en)Úreturnc                  C   sT   zddl } d}W n  tk
r0   tdƒ} d}Y nX |rDddlm} ntdƒ}| |fS )zxTries to import the ``matplotlib`` Python module if it is installed.
    Returns a fake module if everything fails.
    r   NTz8You need to install matplotlib to use this functionalityFz?You need to install matplotlib.pyplot to use this functionality)Z
matplotlibÚImportErrorr   Zmatplotlib.pyplotZpyplot)ZmplZhas_mplZplt© r   úX/home/sam/Atlas/atlas_env/lib/python3.8/site-packages/igraph/drawing/matplotlib/utils.pyr      s    
ÿr   N)Zigraph.drawing.utilsr   Útypingr   Ú__all__Ú__docformat__r   r   r   r   r   Ú<module>   s   