o
    d                     @   s   d Z ddlmZ ddlZddlmZ ddlmZ ejdk serEd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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

    )absolute_importN)TYPE_CHECKING)relative_import)      )
graph_objstoolsutilsofflinecolorsiodata)__version__)r   r   r	   r
   r   r   r   r   )	templatesplotly)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"   T/var/www/html/visualizacion-main/env/lib/python3.10/site-packages/plotly/__init__.py
<dictcomp>d       zplot.<locals>.<dictcomp>r   r   c                    r   ))stackedr"   r#   r&   r"   r(   r)   i   r*   r   barhorientationhr   c                    r   ))byr"   r#   r&   r"   r(   r)   p   r*   )histr   c                    r   ))r/   binsr"   r#   r&   r"   r(   r)   s   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(   plotN   sL   8r9   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>)r3   r   )r6   r'   r   r8   r"   rC   r(   boxplot_frame   s
   
rE   c                    D   ddl m} g dg d7  fdd D }|| fi |S )r   r   r   )r:   r/   r>   
xlabelsizexrot
ylabelsizeyrot)r;   sharexshareyr?   r@   r1   legendc                    rB   r"   r"   r#   rC   r"   r(   r)      r*   zhist_frame.<locals>.<dictcomp>r3   r   r6   r'   r   r8   r"   rC   r(   
hist_frame   
   rQ   c                    rF   )r   r   rG   )r/   r>   rH   rI   rJ   rK   r;   )r?   r1   rN   c                    rB   r"   r"   r#   rC   r"   r(   r)      r*   zhist_series.<locals>.<dictcomp>rO   rP   r"   rC   r(   hist_series   rR   rS   )__doc__
__future__r   systypingr   _plotly_utils.importersr   version_infor   r   r   r	   r
   r   r   r   plotly.versionr   __all__	plotly.ior   _default__name____getattr____dir__r9   rE   rQ   rS   r"   r"   r"   r(   <module>   s(    $	

>