B
    >Œ¶c!U  ã               @   sb   d dl mZ d dlZG dd„ deƒZd dl mZ d dlZG dd„ deƒZdddgZd dlm	Z	 dS )	é    )ÚBaseTraceHierarchyTypeNc                   sj   e Z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d	d
„ ƒZd‡ fdd„	Z	‡  Z
S )ÚStreamc             C   s   | d S )a|  
        Sets the maximum number of points to keep on the plots from an
        incoming stream. If `maxpoints` is set to 50, only the newest
        50 points will be displayed on the plot.
    
        The 'maxpoints' property is a number and may be specified as:
          - An int or float in the interval [0, 10000]

        Returns
        -------
        int|float
        Ú	maxpoints© )Úselfr   r   úQ/var/www/cleansys/lib/python3.7/site-packages/plotly/graph_objs/image/__init__.pyr   	   s    zStream.maxpointsc             C   s   || d< d S )Nr   r   )r   Úvalr   r   r   r      s    c             C   s   | d S )a  
        The stream id number links a data trace on a plot with a
        stream. See https://plot.ly/settings for more details.
    
        The 'token' property is a string and must be specified as:
          - A non-empty string

        Returns
        -------
        str
        Útokenr   )r   r   r   r   r	      s    zStream.tokenc             C   s   || d< d S )Nr	   r   )r   r   r   r   r   r	   .   s    c             C   s   dS )NÚimager   )r   r   r   r   Ú_parent_path_str4   s    zStream._parent_path_strc             C   s   dS )Na’          maxpoints
            Sets the maximum number of points to keep on the plots
            from an incoming stream. If `maxpoints` is set to 50,
            only the newest 50 points will be displayed on the
            plot.
        token
            The stream id number links a data trace on a plot with
            a stream. See https://plot.ly/settings for more
            details.
        r   )r   r   r   r   Ú_prop_descriptions:   s    zStream._prop_descriptionsNc                sæ   t t| ƒ d¡ |dkri }n4t|| jƒr4| ¡ }nt|tƒrJt |¡}nt	dƒ‚| 
dd¡| _ddlm} | ¡ | jd< | ¡ | jd	< | 
dd¡}|dk	r |n|| d< | 
d	d¡}|dk	rÀ|n|| d	< | jf t|f|ŽŽ d| _dS )
aª  
        Construct a new Stream object
        
        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of :class:`plotly.graph_objs.image.Stream`
        maxpoints
            Sets the maximum number of points to keep on the plots
            from an incoming stream. If `maxpoints` is set to 50,
            only the newest 50 points will be displayed on the
            plot.
        token
            The stream id number links a data trace on a plot with
            a stream. See https://plot.ly/settings for more
            details.

        Returns
        -------
        Stream
        ÚstreamNzThe first argument to the plotly.graph_objs.image.Stream 
constructor must be a dict or 
an instance of :class:`plotly.graph_objs.image.Stream`Úskip_invalidFr   )r   r   r	   )Úsuperr   Ú__init__Ú
isinstanceÚ	__class__Úto_plotly_jsonÚdictÚ_copyÚcopyÚ
ValueErrorÚpopÚ_skip_invalidÚplotly.validators.imager   ZMaxpointsValidatorÚ_validatorsZTokenValidatorÚ_process_kwargs)r   Úargr   r	   ÚkwargsZv_streamÚ_v)r   r   r   r   H   s&    

zStream.__init__)NNN)Ú__name__Ú
__module__Ú__qualname__Úpropertyr   Úsetterr	   r   r   r   Ú__classcell__r   r   )r   r   r      s   r   c            
       s   e Z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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dd„ ƒZd#‡ fd!d"„	Z‡  ZS )$Ú
Hoverlabelc             C   s   | d S )aâ  
        Sets the horizontal alignment of the text content within hover
        label box. Has an effect only if the hover label text spans
        more two or more lines
    
        The 'align' property is an enumeration that may be specified as:
          - One of the following enumeration values:
                ['left', 'right', 'auto']
          - A tuple, list, or one-dimensional numpy array of the above

        Returns
        -------
        Any|numpy.ndarray
        Úalignr   )r   r   r   r   r'   –   s    zHoverlabel.alignc             C   s   || d< d S )Nr'   r   )r   r   r   r   r   r'   ¨   s    c             C   s   | d S )zâ
        Sets the source reference on plot.ly for  align .
    
        The 'alignsrc' property must be specified as a string or
        as a plotly.grid_objs.Column object

        Returns
        -------
        str
        Úalignsrcr   )r   r   r   r   r(   ®   s    zHoverlabel.alignsrcc             C   s   || d< d S )Nr(   r   )r   r   r   r   r   r(   ¼   s    c             C   s   | d S )aq
  
        Sets the background color of the hover labels for this trace
    
        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:
                aliceblue, antiquewhite, aqua, aquamarine, azure,
                beige, bisque, black, blanchedalmond, blue,
                blueviolet, brown, burlywood, cadetblue,
                chartreuse, chocolate, coral, cornflowerblue,
                cornsilk, crimson, cyan, darkblue, darkcyan,
                darkgoldenrod, darkgray, darkgrey, darkgreen,
                darkkhaki, darkmagenta, darkolivegreen, darkorange,
                darkorchid, darkred, darksalmon, darkseagreen,
                darkslateblue, darkslategray, darkslategrey,
                darkturquoise, darkviolet, deeppink, deepskyblue,
                dimgray, dimgrey, dodgerblue, firebrick,
                floralwhite, forestgreen, fuchsia, gainsboro,
                ghostwhite, gold, goldenrod, gray, grey, green,
                greenyellow, honeydew, hotpink, indianred, indigo,
                ivory, khaki, lavender, lavenderblush, lawngreen,
                lemonchiffon, lightblue, lightcoral, lightcyan,
                lightgoldenrodyellow, lightgray, lightgrey,
                lightgreen, lightpink, lightsalmon, lightseagreen,
                lightskyblue, lightslategray, lightslategrey,
                lightsteelblue, lightyellow, lime, limegreen,
                linen, magenta, maroon, mediumaquamarine,
                mediumblue, mediumorchid, mediumpurple,
                mediumseagreen, mediumslateblue, mediumspringgreen,
                mediumturquoise, mediumvioletred, midnightblue,
                mintcream, mistyrose, moccasin, navajowhite, navy,
                oldlace, olive, olivedrab, orange, orangered,
                orchid, palegoldenrod, palegreen, paleturquoise,
                palevioletred, papayawhip, peachpuff, peru, pink,
                plum, powderblue, purple, red, rosybrown,
                royalblue, rebeccapurple, saddlebrown, salmon,
                sandybrown, seagreen, seashell, sienna, silver,
                skyblue, slateblue, slategray, slategrey, snow,
                springgreen, steelblue, tan, teal, thistle, tomato,
                turquoise, violet, wheat, white, whitesmoke,
                yellow, yellowgreen
          - A list or array of any of the above

        Returns
        -------
        str|numpy.ndarray
        Úbgcolorr   )r   r   r   r   r)   Â   s    4zHoverlabel.bgcolorc             C   s   || d< d S )Nr)   r   )r   r   r   r   r   r)   ø   s    c             C   s   | d S )zæ
        Sets the source reference on plot.ly for  bgcolor .
    
        The 'bgcolorsrc' property must be specified as a string or
        as a plotly.grid_objs.Column object

        Returns
        -------
        str
        Ú
bgcolorsrcr   )r   r   r   r   r*   þ   s    zHoverlabel.bgcolorsrcc             C   s   || d< d S )Nr*   r   )r   r   r   r   r   r*     s    c             C   s   | d S )ar
  
        Sets the border color of the hover labels for this trace.
    
        The 'bordercolor' 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:
                aliceblue, antiquewhite, aqua, aquamarine, azure,
                beige, bisque, black, blanchedalmond, blue,
                blueviolet, brown, burlywood, cadetblue,
                chartreuse, chocolate, coral, cornflowerblue,
                cornsilk, crimson, cyan, darkblue, darkcyan,
                darkgoldenrod, darkgray, darkgrey, darkgreen,
                darkkhaki, darkmagenta, darkolivegreen, darkorange,
                darkorchid, darkred, darksalmon, darkseagreen,
                darkslateblue, darkslategray, darkslategrey,
                darkturquoise, darkviolet, deeppink, deepskyblue,
                dimgray, dimgrey, dodgerblue, firebrick,
                floralwhite, forestgreen, fuchsia, gainsboro,
                ghostwhite, gold, goldenrod, gray, grey, green,
                greenyellow, honeydew, hotpink, indianred, indigo,
                ivory, khaki, lavender, lavenderblush, lawngreen,
                lemonchiffon, lightblue, lightcoral, lightcyan,
                lightgoldenrodyellow, lightgray, lightgrey,
                lightgreen, lightpink, lightsalmon, lightseagreen,
                lightskyblue, lightslategray, lightslategrey,
                lightsteelblue, lightyellow, lime, limegreen,
                linen, magenta, maroon, mediumaquamarine,
                mediumblue, mediumorchid, mediumpurple,
                mediumseagreen, mediumslateblue, mediumspringgreen,
                mediumturquoise, mediumvioletred, midnightblue,
                mintcream, mistyrose, moccasin, navajowhite, navy,
                oldlace, olive, olivedrab, orange, orangered,
                orchid, palegoldenrod, palegreen, paleturquoise,
                palevioletred, papayawhip, peachpuff, peru, pink,
                plum, powderblue, purple, red, rosybrown,
                royalblue, rebeccapurple, saddlebrown, salmon,
                sandybrown, seagreen, seashell, sienna, silver,
                skyblue, slateblue, slategray, slategrey, snow,
                springgreen, steelblue, tan, teal, thistle, tomato,
                turquoise, violet, wheat, white, whitesmoke,
                yellow, yellowgreen
          - A list or array of any of the above

        Returns
        -------
        str|numpy.ndarray
        Úbordercolorr   )r   r   r   r   r+     s    4zHoverlabel.bordercolorc             C   s   || d< d S )Nr+   r   )r   r   r   r   r   r+   H  s    c             C   s   | d S )zî
        Sets the source reference on plot.ly for  bordercolor .
    
        The 'bordercolorsrc' property must be specified as a string or
        as a plotly.grid_objs.Column object

        Returns
        -------
        str
        Úbordercolorsrcr   )r   r   r   r   r,   N  s    zHoverlabel.bordercolorsrcc             C   s   || d< d S )Nr,   r   )r   r   r   r   r   r,   \  s    c             C   s   | d S )a?  
        Sets the font used in hover labels.
    
        The 'font' property is an instance of Font
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.image.hoverlabel.Font`
          - A dict of string/value properties that will be passed
            to the Font constructor
    
            Supported dict properties:
                
                color
    
                colorsrc
                    Sets the source reference on plot.ly for  color
                    .
                family
                    HTML font family - the typeface that will be
                    applied by the web browser. The web browser
                    will only be able to apply a font if it is
                    available on the system which it operates.
                    Provide multiple font families, separated by
                    commas, to indicate the preference in which to
                    apply fonts if they aren't available on the
                    system. The plotly service (at https://plot.ly
                    or on-premise) generates images on a server,
                    where only a select number of fonts are
                    installed and supported. These include "Arial",
                    "Balto", "Courier New", "Droid Sans",, "Droid
                    Serif", "Droid Sans Mono", "Gravitas One", "Old
                    Standard TT", "Open Sans", "Overpass", "PT Sans
                    Narrow", "Raleway", "Times New Roman".
                familysrc
                    Sets the source reference on plot.ly for
                    family .
                size
    
                sizesrc
                    Sets the source reference on plot.ly for  size
                    .

        Returns
        -------
        plotly.graph_objs.image.hoverlabel.Font
        Úfontr   )r   r   r   r   r-   b  s    /zHoverlabel.fontc             C   s   || d< d S )Nr-   r   )r   r   r   r   r   r-   “  s    c             C   s   | d S )aÝ  
        Sets the default length (in number of characters) of the trace
        name in the hover labels for all traces. -1 shows the whole
        name regardless of length. 0-3 shows the first 0-3 characters,
        and an integer >3 will show the whole name if it is less than
        that many characters, but if it is longer, will truncate to
        `namelength - 3` characters and add an ellipsis.
    
        The 'namelength' 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]
          - A tuple, list, or one-dimensional numpy array of the above

        Returns
        -------
        int|numpy.ndarray
        Ú
namelengthr   )r   r   r   r   r.   ™  s    zHoverlabel.namelengthc             C   s   || d< d S )Nr.   r   )r   r   r   r   r   r.   ®  s    c             C   s   | d S )zì
        Sets the source reference on plot.ly for  namelength .
    
        The 'namelengthsrc' property must be specified as a string or
        as a plotly.grid_objs.Column object

        Returns
        -------
        str
        Únamelengthsrcr   )r   r   r   r   r/   ´  s    zHoverlabel.namelengthsrcc             C   s   || d< d S )Nr/   r   )r   r   r   r   r   r/   Â  s    c             C   s   dS )Nr
   r   )r   r   r   r   r   È  s    zHoverlabel._parent_path_strc             C   s   dS )Naö          align
            Sets the horizontal alignment of the text content
            within hover label box. Has an effect only if the hover
            label text spans more two or more lines
        alignsrc
            Sets the source reference on plot.ly for  align .
        bgcolor
            Sets the background color of the hover labels for this
            trace
        bgcolorsrc
            Sets the source reference on plot.ly for  bgcolor .
        bordercolor
            Sets the border color of the hover labels for this
            trace.
        bordercolorsrc
            Sets the source reference on plot.ly for  bordercolor .
        font
            Sets the font used in hover labels.
        namelength
            Sets the default length (in number of characters) of
            the trace name in the hover labels for all traces. -1
            shows the whole name regardless of length. 0-3 shows
            the first 0-3 characters, and an integer >3 will show
            the whole name if it is less than that many characters,
            but if it is longer, will truncate to `namelength - 3`
            characters and add an ellipsis.
        namelengthsrc
            Sets the source reference on plot.ly for  namelength .
        r   )r   r   r   r   r   Î  s    zHoverlabel._prop_descriptionsNc                s:  t t| ƒ d¡ |dkri }n4t|| jƒr4| ¡ }nt|tƒrJt |¡}nt	dƒ‚| 
dd¡| _ddlm} | ¡ | jd< | ¡ | jd	< | ¡ | jd
< | ¡ | jd< | ¡ | jd< | ¡ | jd< | ¡ | jd< | ¡ | jd< | ¡ | jd< | 
dd¡}|dk	r|n|| d< | 
d	d¡}|dk	r&|n|| d	< | 
d
d¡}|dk	rH|n|| d
< | 
dd¡}|dk	rj|n|| d< | 
dd¡}|dk	rŒ|n|| d< | 
dd¡}|dk	r®|n|| d< | 
dd¡}|dk	rÐ|n|| d< | 
dd¡}|	dk	rò|	n|| d< | 
dd¡}|
dk	r|
n|| d< | jf t|f|ŽŽ d| _dS )a&  
        Construct a new Hoverlabel object
        
        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of
            :class:`plotly.graph_objs.image.Hoverlabel`
        align
            Sets the horizontal alignment of the text content
            within hover label box. Has an effect only if the hover
            label text spans more two or more lines
        alignsrc
            Sets the source reference on plot.ly for  align .
        bgcolor
            Sets the background color of the hover labels for this
            trace
        bgcolorsrc
            Sets the source reference on plot.ly for  bgcolor .
        bordercolor
            Sets the border color of the hover labels for this
            trace.
        bordercolorsrc
            Sets the source reference on plot.ly for  bordercolor .
        font
            Sets the font used in hover labels.
        namelength
            Sets the default length (in number of characters) of
            the trace name in the hover labels for all traces. -1
            shows the whole name regardless of length. 0-3 shows
            the first 0-3 characters, and an integer >3 will show
            the whole name if it is less than that many characters,
            but if it is longer, will truncate to `namelength - 3`
            characters and add an ellipsis.
        namelengthsrc
            Sets the source reference on plot.ly for  namelength .

        Returns
        -------
        Hoverlabel
        Ú
hoverlabelNz—The first argument to the plotly.graph_objs.image.Hoverlabel 
constructor must be a dict or 
an instance of :class:`plotly.graph_objs.image.Hoverlabel`r   Fr   )r0   r'   r(   r)   r*   r+   r,   r-   r.   r/   )r   r&   r   r   r   r   r   r   r   r   r   r   r   r0   ZAlignValidatorr   ZAlignsrcValidatorZBgcolorValidatorZBgcolorsrcValidatorZBordercolorValidatorZBordercolorsrcValidatorZFontValidatorZNamelengthValidatorZNamelengthsrcValidatorr   )r   r   r'   r(   r)   r*   r+   r,   r-   r.   r/   r   Zv_hoverlabelr   )r   r   r   r   ï  sP    8

zHoverlabel.__init__)
NNNNNNNNNN)r    r!   r"   r#   r'   r$   r(   r)   r*   r+   r,   r-   r.   r/   r   r   r   r%   r   r   )r   r   r&   ’   s<   661#         r&   r0   )r0   )
Zplotly.basedatatypesr   Z_BaseTraceHierarchyTyper   r   r   r&   Ú__all__Zplotly.graph_objs.imager0   r   r   r   r   Ú<module>   s    
   \
