
    -Phe                     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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    a/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/plotly/graph_objs/layout/_ternary.pyr   zTernary.aaxis        G}    c                     || d<   d S )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<   d S )Nr	   r   r   s     r   r	   zTernary.baxis0   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.bgcolor4   s      Ir   c                     || d<   d S )Nr   r   r   s     r   r   zTernary.bgcolorF   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.caxisJ   r   r   c                     || d<   d S )Nr
   r   r   s     r   r
   zTernary.caxisY   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<   d S )Nr   r   r   s     r   r   zTernary.domainl   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.sump   s     E{r   c                     || d<   d S )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<   d S )Nr   r   r   s     r   r   zTernary.uirevision   s     \r   c                     dS )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   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||           |                     d||            | j        di t          |fi |	 d| _        dS )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__   s   ^ 	###!),DLF;CCT^,, 
	$$&&CCT"" 	*S//CC<   $ZZ>>K667C///7C///9c73337C///8S&1115#s+++<j99933tC2262233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XXXL  X \  \   X \  \   X" ^  ^   X \  \   X ]  ]   X 	Z  Z " " X" ! ! !   X6 M# M# M# M# M# M# M# M# M# M#r   r   )plotly.basedatatypesr   _BaseLayoutHierarchyTyper3   r2   r   r   r   r   <module>rF      se    U T T T T T    u# u# u# u# u#& u# u# u# u# u#r   