
    -Ph7                     6    d dl mZ d dlZ G d de          ZdS )    )BaseLayoutHierarchyTypeNc                       e Zd ZdZdZh dZed             Zej        d             Zed             Z	e	j        d             Z	ed             Z
e
j        d	             Z
ed
             Zej        d             Zed             Zej        d             Zed             Zej        d             Zed             Z	 	 	 	 	 	 	 d fd	Z xZS )Marginlayoutzlayout.margin>   blrtpad
autoexpandc                     | 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    selfs    `/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/plotly/graph_objs/layout/_margin.pyr   zMargin.autoexpand   s     L!!    c                     || d<   d S )Nr   r   r   vals     r   r   zMargin.autoexpand   s     \r   c                     | d         S )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   s    r   r   zMargin.b"        Cyr   c                     || d<   d S )Nr   r   r   s     r   r   zMargin.b0       S			r   c                     | d         S )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   s    r   r   zMargin.l4   r   r   c                     || d<   d S )Nr   r   r   s     r   r   zMargin.lB   r   r   c                     | d         S )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   s    r   r   z
Margin.padF   s     E{r   c                     || d<   d S )Nr   r   r   s     r   r   z
Margin.padU   s    Ur   c                     | d         S )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   s    r   r	   zMargin.rY   r   r   c                     || d<   d S )Nr	   r   r   s     r   r	   zMargin.rg   r   r   c                     | d         S )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   s    r   r
   zMargin.tk   r   r   c                     || d<   d S )Nr
   r   r   s     r   r
   zMargin.ty   r   r   c                     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   s    r   _prop_descriptionszMargin._prop_descriptions}   s     r   Nc           	         t                                          d           d|v r|d         | _        dS |i }nct          || j                  r|                                }n9t          |t                    rt          j        |          }nt          d          |
                    dd          | _        |
                    dd          | _        |                     d	||           |                     d
||           |                     d||           |                     d||           |                     d||           |                     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   )super__init__r&   
isinstance	__class__to_plotly_jsondict_copycopy
ValueErrorpop_skip_invalidr(   _set_property_process_kwargs)
r   argr   r   r   r   r	   r
   kwargsr,   s
            r   r*   zMargin.__init__   s   P 	"""!),DLF;CCT^,, 
	$$&&CCT"" 	*S//CC;   $ZZ>>K66<j9993Q'''3Q'''5#s+++3Q'''3Q'''33tC22622333"r   )NNNNNNN)__name__
__module____qualname___parent_path_str	_path_str_valid_propspropertyr   setterr   r   r   r	   r
   r#   r*   __classcell__)r,   s   @r   r   r      s       I<<<L" " X" ! ! !   X X  X   X X  X   X 	Z  Z   X X  X   X X  X   X, 



E# E# E# E# E# E# E# E# E# E#r   r   )plotly.basedatatypesr   _BaseLayoutHierarchyTyper0   r/   r   r   r   r   <module>rC      se    U T T T T T    O# O# O# O# O#% O# O# O# O# O#r   