o
    ƒõ­d  ã                   @   s(   d dl mZ d dlZG dd„ deƒZdS )é    )ÚBaseLayoutHierarchyTypeNc                       sä   e Zd ZdZdZh d£Zedd„ ƒZejdd„ ƒZedd„ ƒZ	e	jd	d„ ƒZ	ed
d„ ƒZ
e
jdd„ ƒZ
edd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZ							d‡ fdd„	Z‡  ZS )ÚMarginÚlayoutzlayout.margin>   ÚbÚlÚrÚtÚpadÚ
autoexpandc                 C   ó   | d S )aT  
        Turns on/off margin expansion computations. Legends, colorbars,
        updatemenus, sliders, axis rangeselector and rangeslider are
        allowed to push the margins by defaults.

        The 'autoexpand' property must be specified as a bool
        (either True, or False)

        Returns
        -------
        bool
        r
   © ©Úselfr   r   úe/var/www/html/visualizacion-main/env/lib/python3.10/site-packages/plotly/graph_objs/layout/_margin.pyr
      s   zMargin.autoexpandc                 C   ó   || d< d S )Nr
   r   ©r   Úvalr   r   r   r
      ó   c                 C   r   )zØ
        Sets the bottom margin (in px).

        The 'b' property is a number and may be specified as:
          - An int or float in the interval [0, inf]

        Returns
        -------
        int|float
        r   r   r   r   r   r   r   %   ó   zMargin.bc                 C   r   )Nr   r   r   r   r   r   r   3   r   c                 C   r   )zÖ
        Sets the left margin (in px).

        The 'l' property is a number and may be specified as:
          - An int or float in the interval [0, inf]

        Returns
        -------
        int|float
        r   r   r   r   r   r   r   9   r   zMargin.lc                 C   r   )Nr   r   r   r   r   r   r   G   r   c                 C   r   )a  
        Sets the amount of padding (in px) between the plotting area
        and the axis lines

        The 'pad' property is a number and may be specified as:
          - An int or float in the interval [0, inf]

        Returns
        -------
        int|float
        r	   r   r   r   r   r   r	   M   s   z
Margin.padc                 C   r   )Nr	   r   r   r   r   r   r	   \   r   c                 C   r   )z×
        Sets the right margin (in px).

        The 'r' property is a number and may be specified as:
          - An int or float in the interval [0, inf]

        Returns
        -------
        int|float
        r   r   r   r   r   r   r   b   r   zMargin.rc                 C   r   )Nr   r   r   r   r   r   r   p   r   c                 C   r   )zÕ
        Sets the top margin (in px).

        The 't' property is a number and may be specified as:
          - An int or float in the interval [0, inf]

        Returns
        -------
        int|float
        r   r   r   r   r   r   r   v   r   zMargin.tc                 C   r   )Nr   r   r   r   r   r   r   „   r   c                 C   s   dS )Na7          autoexpand
            Turns on/off margin expansion computations. Legends,
            colorbars, updatemenus, sliders, axis rangeselector and
            rangeslider are allowed to push the margins by
            defaults.
        b
            Sets the bottom margin (in px).
        l
            Sets the left margin (in px).
        pad
            Sets the amount of padding (in px) between the plotting
            area and the axis lines
        r
            Sets the right margin (in px).
        t
            Sets the top margin (in px).
        r   r   r   r   r   Ú_prop_descriptionsŠ   s   zMargin._prop_descriptionsNc           
         s²  t t| ƒ d¡ d|v r|d | _dS |du ri }nt|| jƒr%| ¡ }nt|tƒr0t 	|¡}nt
dƒ‚| dd¡| _| dd¡| _| d	d¡}	|durN|n|	}	|	durX|	| d	< | d
d¡}	|durd|n|	}	|	durn|	| d
< | dd¡}	|durz|n|	}	|	dur„|	| d< | dd¡}	|dur|n|	}	|	durš|	| d< | dd¡}	|dur¦|n|	}	|	dur°|	| d< | dd¡}	|dur¼|n|	}	|	durÆ|	| d< | jdi t|fi |¤Ž¤Ž d| _dS )aH  
        Construct a new Margin object

        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of :class:`plotly.graph_objs.layout.Margin`
        autoexpand
            Turns on/off margin expansion computations. Legends,
            colorbars, updatemenus, sliders, axis rangeselector and
            rangeslider are allowed to push the margins by
            defaults.
        b
            Sets the bottom margin (in px).
        l
            Sets the left margin (in px).
        pad
            Sets the amount of padding (in px) between the plotting
            area and the axis lines
        r
            Sets the right margin (in px).
        t
            Sets the top margin (in px).

        Returns
        -------
        Margin
        ÚmarginÚ_parentNzThe first argument to the plotly.graph_objs.layout.Margin
constructor must be a dict or
an instance of :class:`plotly.graph_objs.layout.Margin`Úskip_invalidFÚ	_validateTr
   r   r   r	   r   r   r   )Úsuperr   Ú__init__r   Ú
isinstanceÚ	__class__Úto_plotly_jsonÚdictÚ_copyÚcopyÚ
ValueErrorÚpopÚ_skip_invalidr   Ú_process_kwargs)
r   Úargr
   r   r   r	   r   r   ÚkwargsÚ_v©r   r   r   r   Ÿ   sR   (


ÿ	
zMargin.__init__)NNNNNNN)Ú__name__Ú
__module__Ú__qualname__Ú_parent_path_strÚ	_path_strÚ_valid_propsÚpropertyr
   Úsetterr   r   r	   r   r   r   r   Ú__classcell__r   r   r)   r   r      sL    












ør   )Úplotly.basedatatypesr   Ú_BaseLayoutHierarchyTyper!   r    r   r   r   r   r   Ú<module>   s    