
    WhF                     .    d dl mZ d dlZ G d de      Zy)    )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ej                  d        Zed        Z	 	 	 	 	 	 	 	 d fd	Z xZS )Ternarylayoutzlayout.ternary>   sumaaxisbaxiscaxisdomainbgcolor
uirevisionc                     | d   S )ab  
        The 'aaxis' property is an instance of Aaxis
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.layout.ternary.Aaxis`
          - A dict of string/value properties that will be passed
            to the Aaxis constructor

        Returns
        -------
        plotly.graph_objs.layout.ternary.Aaxis
        r    selfs    [/var/www/html/jupyter_env/lib/python3.12/site-packages/plotly/graph_objs/layout/_ternary.pyr   zTernary.aaxis        G}    c                     || d<   y )Nr   r   r   vals     r   r   zTernary.aaxis       Wr   c                     | d   S )ab  
        The 'baxis' property is an instance of Baxis
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.layout.ternary.Baxis`
          - A dict of string/value properties that will be passed
            to the Baxis constructor

        Returns
        -------
        plotly.graph_objs.layout.ternary.Baxis
        r	   r   r   s    r   r	   zTernary.baxis    r   r   c                     || d<   y )Nr	   r   r   s     r   r	   zTernary.baxis/   r   r   c                     | d   S )a  
        Set the background color of the subplot

        The 'bgcolor' property is a color and may be specified as:
          - A hex string (e.g. '#ff0000')
          - An rgb/rgba string (e.g. 'rgb(255,0,0)')
          - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
          - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
          - A named CSS color: see https://plotly.com/python/css-colors/ for a list

        Returns
        -------
        str
        r   r   r   s    r   r   zTernary.bgcolor3   s      Ir   c                     || d<   y )Nr   r   r   s     r   r   zTernary.bgcolorE   s    Yr   c                     | d   S )ab  
        The 'caxis' property is an instance of Caxis
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.layout.ternary.Caxis`
          - A dict of string/value properties that will be passed
            to the Caxis constructor

        Returns
        -------
        plotly.graph_objs.layout.ternary.Caxis
        r
   r   r   s    r   r
   zTernary.caxisI   r   r   c                     || d<   y )Nr
   r   r   s     r   r
   zTernary.caxisX   r   r   c                     | d   S )ag  
        The 'domain' property is an instance of Domain
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.layout.ternary.Domain`
          - A dict of string/value properties that will be passed
            to the Domain constructor

        Returns
        -------
        plotly.graph_objs.layout.ternary.Domain
        r   r   r   s    r   r   zTernary.domain\   s     H~r   c                     || d<   y )Nr   r   r   s     r   r   zTernary.domaink   s    Xr   c                     | d   S )a  
        The number each triplet should sum to, and the maximum range of
        each axis

        The 'sum' 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Ternary.sumo   s     E{r   c                     || d<   y )Nr   r   r   s     r   r   zTernary.sum~   s    Ur   c                     | d   S )a  
        Controls persistence of user-driven changes in axis `min` and
        `title`, if not overridden in the individual axes. Defaults to
        `layout.uirevision`.

        The 'uirevision' property accepts values of any type

        Returns
        -------
        Any
        r   r   r   s    r   r   zTernary.uirevision   s     L!!r   c                     || d<   y )Nr   r   r   s     r   r   zTernary.uirevision   s     \r   c                      y)Na          aaxis
            :class:`plotly.graph_objects.layout.ternary.Aaxis`
            instance or dict with compatible properties
        baxis
            :class:`plotly.graph_objects.layout.ternary.Baxis`
            instance or dict with compatible properties
        bgcolor
            Set the background color of the subplot
        caxis
            :class:`plotly.graph_objects.layout.ternary.Caxis`
            instance or dict with compatible properties
        domain
            :class:`plotly.graph_objects.layout.ternary.Domain`
            instance or dict with compatible properties
        sum
            The number each triplet should sum to, and the maximum
            range of each axis
        uirevision
            Controls persistence of user-driven changes in axis
            `min` and `title`, if not overridden in the individual
            axes. Defaults to `layout.uirevision`.
        r   r   s    r   _prop_descriptionszTernary._prop_descriptions   s    r   c	           	         t         
|   d       d|	v r|	d   | _        y|i }nXt        || j                        r|j                         }n1t        |t              rt        j                  |      }nt        d      |	j                  dd      | _        |	j                  dd      | _        | j                  d	||       | j                  d
||       | j                  d||       | j                  d||       | j                  d||       | j                  d||       | j                  d||        | j                  di t        |fi |	 d| _        y)a  
        Construct a new Ternary object

        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of
            :class:`plotly.graph_objs.layout.Ternary`
        aaxis
            :class:`plotly.graph_objects.layout.ternary.Aaxis`
            instance or dict with compatible properties
        baxis
            :class:`plotly.graph_objects.layout.ternary.Baxis`
            instance or dict with compatible properties
        bgcolor
            Set the background color of the subplot
        caxis
            :class:`plotly.graph_objects.layout.ternary.Caxis`
            instance or dict with compatible properties
        domain
            :class:`plotly.graph_objects.layout.ternary.Domain`
            instance or dict with compatible properties
        sum
            The number each triplet should sum to, and the maximum
            range of each axis
        uirevision
            Controls persistence of user-driven changes in axis
            `min` and `title`, if not overridden in the individual
            axes. Defaults to `layout.uirevision`.

        Returns
        -------
        Ternary
        ternary_parentNzThe first argument to the plotly.graph_objs.layout.Ternary
constructor must be a dict or
an instance of :class:`plotly.graph_objs.layout.Ternary`skip_invalidF	_validateTr   r	   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   r   kwargsr/   s             r   r-   zTernary.__init__   sC   ^ 	#!),DL;CT^^,$$&CT"**S/C < = =
 $ZZ>K67C/7C/9c737C/8S&15#s+<j93tC2623"r   )NNNNNNNN)__name__
__module____qualname___parent_path_str	_path_str_valid_propspropertyr   setterr	   r   r
   r   r   r   r&   r-   __classcell__)r/   s   @r   r   r      s    IXL  \\    \\   " ^^    \\    ]]    	ZZ  " " ! !  6 K# K#r   r   )plotly.basedatatypesr   _BaseLayoutHierarchyTyper3   r2   r   r   r   r   <module>rF      s    U r#& r#r   