Ë
    ý�Dj	  ã                   ó,   — d dl Z d dlZddgZdd„Zdd„Zy)é    NÚget_compatible_pyplotÚmpl_hist_argc                 ó<  — ddl }|j                  «       }| �J|j                  | «       |rlt        j                  j                  d|›d| ›dt        j                  ›�«       n5|r3t        j                  j                  d|›dt        j                  ›�«       ddl m} |S )	aÃ  Make the backend of MPL compatible.

    In Travis Mac distributions, python is not installed as a framework. This
    means that using the TkAgg backend is the best solution (so it doesn't
    try to use the mac OS backend by default).

    Parameters
    ----------
    backend : str, optional (default="TkAgg")
        The backend to default to.

    debug : bool, optional (default=True)
        Whether to log the existing backend to stderr.
    r   NzCurrently using 'z' MPL backend, switching to 'z	' backendzUsing 'z' MPL backend)Úpyplot)	Ú
matplotlibÚget_backendÚuseÚsysÚstderrÚwriteÚosÚlinesepr   )ÚbackendÚdebugr   Úexisting_backendÚplts        ú^C:\Crop_Prediction\Backend\crop-ai-system\venv\Lib\site-packages\pmdarima/compat/matplotlib.pyr   r      s‚   € ó ð "×-Ñ-Ó/ÐØÐà�‰�wÔñ Ü�J‰J×Òâ 0²'¼2¿:º:ðGõ Hñ
 
Ü�
‰
×ÒÚ,¬b¯jªjð:ô 	;õ )Ø€Jó    c                 ó8   — ddl }|j                  dk\  rdnd}|| iS )aX  Find the appropriate `density` kwarg for our given matplotlib version.

    This will determine if we should use `normed` or `density`. Additionally,
    since this is a kwarg, the user can supply a value (True or False) that
    they would like in the output dictionary.

    Parameters
    ----------
    value : bool, optional (default=True)
        The boolean value of density/normed

    Returns
    -------
    density_kwarg : dict
        A dictionary containing the appropriate density kwarg for the
        installed  matplotlib version, mapped to the provided or default
        value
    r   Nz2.1.0ÚdensityÚnormed)r   Ú__version__)Úvaluer   Údensity_kwargs      r   r   r   7   s*   € ó& à!+×!7Ñ!7¸7Ò!B‘IØð à˜5Ð!Ð!r   )NT)T)r
   r   Ú__all__r   r   © r   r   ú<module>r      s'   ðó Û 	ð Øð€ó$ôN"r   