
    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 JJ 0'2::G H
 


,bjj: 	; )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!77!BI 5!!r   )NT)T)r
   r   __all__r   r    r   r   <module>r      s'     	 $N"r   