
    -Ph?                     6    d dl mZ d dlZ G d de          ZdS )    )BaseTraceHierarchyTypeNc                        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	 d fd	Z xZS )Surfacevolumezvolume.surface>   fillshowcountpatternc                     | d         S )a  
        Sets the number of iso-surfaces between minimum and maximum
        iso-values. By default this value is 2 meaning that only
        minimum and maximum surfaces would be drawn.

        The 'count' property is a integer and may be specified as:
          - An int (or float that will be cast to an int)
            in the interval [1, 9223372036854775807]

        Returns
        -------
        int
        r	    selfs    a/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/plotly/graph_objs/volume/_surface.pyr	   zSurface.count   s     G}    c                     || d<   d S )Nr	   r   r   vals     r   r	   zSurface.count   s    Wr   c                     | d         S )a  
        Sets the fill ratio of the iso-surface. The default fill value
        of the surface is 1 meaning that they are entirely shaded. On
        the other hand Applying a `fill` ratio less than one would
        allow the creation of openings parallel to the edges.

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

        Returns
        -------
        int|float
        r   r   r   s    r   r   zSurface.fill#   s     F|r   c                     || d<   d S )Nr   r   r   s     r   r   zSurface.fill4       Vr   c                     | d         S )a/  
        Sets the surface pattern of the iso-surface 3-D sections. The
        default pattern of the surface is `all` meaning that the rest
        of surface elements would be shaded. The check options (either
        1 or 2) could be used to draw half of the squares on the
        surface. Using various combinations of capital `A`, `B`, `C`,
        `D` and `E` may also be used to reduce the number of triangles
        on the iso-surfaces and creating other patterns of interest.

        The 'pattern' property is a flaglist and may be specified
        as a string containing:
          - Any combination of ['A', 'B', 'C', 'D', 'E'] joined with '+' characters
            (e.g. 'A+B')
            OR exactly one of ['all', 'odd', 'even'] (e.g. 'even')

        Returns
        -------
        Any
        r
   r   r   s    r   r
   zSurface.pattern8   s    * Ir   c                     || d<   d S )Nr
   r   r   s     r   r
   zSurface.patternO   s    Yr   c                     | d         S )z
        Hides/displays surfaces between minimum and maximum iso-values.

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

        Returns
        -------
        bool
        r   r   r   s    r   r   zSurface.showS   s     F|r   c                     || d<   d S )Nr   r   r   s     r   r   zSurface.showa   r   r   c                     dS )Na          count
            Sets the number of iso-surfaces between minimum and
            maximum iso-values. By default this value is 2 meaning
            that only minimum and maximum surfaces would be drawn.
        fill
            Sets the fill ratio of the iso-surface. The default
            fill value of the surface is 1 meaning that they are
            entirely shaded. On the other hand Applying a `fill`
            ratio less than one would allow the creation of
            openings parallel to the edges.
        pattern
            Sets the surface pattern of the iso-surface 3-D
            sections. The default pattern of the surface is `all`
            meaning that the rest of surface elements would be
            shaded. The check options (either 1 or 2) could be used
            to draw half of the squares on the surface. Using
            various combinations of capital `A`, `B`, `C`, `D` and
            `E` may also be used to reduce the number of triangles
            on the iso-surfaces and creating other patterns of
            interest.
        show
            Hides/displays surfaces between minimum and maximum
            iso-values.
        r   r   s    r   _prop_descriptionszSurface._prop_descriptionse   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||            | j        di t          |fi | d| _        dS )a  
        Construct a new Surface object

        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of
            :class:`plotly.graph_objs.volume.Surface`
        count
            Sets the number of iso-surfaces between minimum and
            maximum iso-values. By default this value is 2 meaning
            that only minimum and maximum surfaces would be drawn.
        fill
            Sets the fill ratio of the iso-surface. The default
            fill value of the surface is 1 meaning that they are
            entirely shaded. On the other hand Applying a `fill`
            ratio less than one would allow the creation of
            openings parallel to the edges.
        pattern
            Sets the surface pattern of the iso-surface 3-D
            sections. The default pattern of the surface is `all`
            meaning that the rest of surface elements would be
            shaded. The check options (either 1 or 2) could be used
            to draw half of the squares on the surface. Using
            various combinations of capital `A`, `B`, `C`, `D` and
            `E` may also be used to reduce the number of triangles
            on the iso-surfaces and creating other patterns of
            interest.
        show
            Hides/displays surfaces between minimum and maximum
            iso-values.

        Returns
        -------
        Surface
        surface_parentNzThe first argument to the plotly.graph_objs.volume.Surface
constructor must be a dict or
an instance of :class:`plotly.graph_objs.volume.Surface`skip_invalidF	_validateTr	   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   kwargsr%   s          r   r#   zSurface.__init__   si   P 	###!),DLF;CCT^,, 
	$$&&CCT"" 	*S//CC<   $ZZ>>K667C///63---9c733363---33tC22622333"r   )NNNNN)__name__
__module____qualname___parent_path_str	_path_str_valid_propspropertyr	   setterr   r
   r   r   r#   __classcell__)r%   s   @r   r   r      s]        I777L  X  \  \   X  
[  [   X, ^  ^   X 
[  [   X8 CGC# C# C# C# C# C# C# C# C# C#r   r   )plotly.basedatatypesr   _BaseTraceHierarchyTyper)   r(   r   r   r   r   <module>r<      se    S R R R R R    |# |# |# |# |#% |# |# |# |# |#r   