o
    Mh@                     @   s   d Z ddlmZ ddlmZ ddlZejdZ	e	ZerBddl
mZmZmZmZmZmZmZ ddlm	Z	 g dZdd	lmZ de_neeg d
dg\ZZZdd Zdd Zdd Zdd Zdd ZdS )ac  
https://plot.ly/python/

Plotly's Python API allows users to programmatically access Plotly's
server resources.

This package is organized as follows:

Subpackages:

- plotly: all functionality that requires access to Plotly's servers

- graph_objs: objects for designing figures and visualizing data

- matplotlylib: tools to convert matplotlib figures

Modules:

- tools: some helpful tools that do not require access to Plotly's servers

- utils: functions that you probably won't need, but that subpackages use

- version: holds the current API version

- exceptions: defines our custom exception classes

    )TYPE_CHECKING)relative_importNplotly)
graph_objstoolsutilsofflinecolorsiodata)__version__)r   r   r   r   r	   r
   r   r   )	templates)z.graph_objsz.graph_objectsz.toolsz.utilsz.offlinez.colorsz.ioz.dataz.version.__version__c                    s  ddl m}m}m}m}m}m}m}	m}
m	}m
}m}m} |dkr1 fdd D }|| fi |S |dkr=|| fi  S |dkrR fdd D }|| fi |S |d	kr^|| fi  S |d
krl|| fddi S |dkr fdd D }|| fi |S |dv r fdd D }|| fi |S |dkr|	| fi  S |dkr|
| fi  S |dkr|| fi  S |dkr|| fi  S |dkr|| fi  S |dkr|| fi  S |dkrtdtd| )
    Pandas plotting backend function, not meant to be called directly.
    To activate, set pandas.options.plotting.backend="plotly"
    See https://github.com/pandas-dev/pandas/blob/master/pandas/plotting/__init__.py
       )scatterlineareabarbox	histogramviolinstripfunneldensity_contourdensity_heatmapimshowr   c                       i | ]}|d vr| | qS ))sc .0kkwargsr   P/var/www/html/Persson_Maskin/env/lib/python3.10/site-packages/plotly/__init__.py
<dictcomp>g       zplot.<locals>.<dictcomp>r   r   c                    r   ))stackedr   r    r#   r   r%   r&   l   r'   r   barhorientationhr   c                    r   ))byr   r    r#   r   r%   r&   s   r'   )histr   c                    r   ))r,   binsr   r    r#   r   r%   r&   v   r'   r   r   r   r   r   r   heatmapzkkind='heatmap' not supported plotting.backend='plotly'. Please use kind='imshow' or kind='density_heatmap'.z9kind='%s' not yet supported for plotting.backend='plotly')expressr   r   r   r   r   r   r   r   r   r   r   r   
ValueErrorNotImplementedError)
data_framekindr$   r   r   r   r   r   r   r   r   r   r   r   r   
new_kwargsr   r#   r%   plotQ   sL   8r6   c                    sB   ddl m} g ddg7  fdd D }|| fi |S )r   r   )r   )r,   columnaxfontsizerotgridfigsizelayoutreturn_typec                       i | ]}|vr| | qS r   r   r    r$   skipr   r%   r&      r'   z!boxplot_frame.<locals>.<dictcomp>)r0   r   )r3   r$   r   r5   r   r@   r%   boxplot_frame   s
   
rB   c                    D   ddl m} g dg d7  fdd D }|| fi |S )r   r   r   )r7   r,   r;   
xlabelsizexrot
ylabelsizeyrot)r8   sharexshareyr<   r=   r.   legendc                    r?   r   r   r    r@   r   r%   r&      r'   zhist_frame.<locals>.<dictcomp>r0   r   r3   r$   r   r5   r   r@   r%   
hist_frame   
   rN   c                    rC   )r   r   rD   )r,   r;   rE   rF   rG   rH   r8   )r<   r.   rK   c                    r?   r   r   r    r@   r   r%   r&      r'   zhist_series.<locals>.<dictcomp>rL   rM   r   r@   r%   hist_series   rO   rP   c                   C   s   dddgS )zkCalled by Jupyter Lab Server to detect if it is a valid labextension and
    to install the extension.
    zlabextension/staticzjupyterlab-plotly)srcdestr   r   r   r   r%   _jupyter_labextension_paths   s   rS   )__doc__typingr   _plotly_utils.importersr   importlib.metadata	importlibmetadataversionr   r   r   r   r   r   r	   r
   r   plotly.version__all__	plotly.ior   _default__name____getattr____dir__r6   rB   rN   rP   rS   r   r   r   r%   <module>   s,    $	

>