§
    p¬¸jÕ  ã                   óŽ   — d dl mZ d dlmZ  G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d	„ d
e¦  «        ZdS )é    )Úcbook)ÚArtistc                   óx   — e Zd ZdZd„ Zd„ Zdd„Zd„ Zd„ Ze	j
        Z
e	j        Ze	j        Ze	j        Ze	j        ZdS )	Ú	ContainerzŽ
    Base class for containers.

    Containers are classes that collect semantically related Artists such as
    the bars of a bar plot.
    c                 óR   — dt          | ¦  «        j        › dt          | ¦  «        › d�S )Nú<z object of z	 artists>)ÚtypeÚ__name__Úlen©Úselfs    úd/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/matplotlib/container.pyÚ__repr__zContainer.__repr__   s*   € ØG•4˜‘:”:Ô&ÐGÐGµ3°t±9´9ÐGÐGÐGÐGó    c                 óD   — t                                | |d         ¦  «        S )Nr   )ÚtupleÚ__new__)ÚclsÚargsÚkwargss      r   r   zContainer.__new__   s   € Ý�}Š}˜S $ q¤'Ñ*Ô*Ð*r   Nc                 óz   — t          j        dg¬¦  «        | _        d | _        |�t	          |¦  «        nd | _        d S )NÚpchanged)Úsignals)r   ÚCallbackRegistryÚ
_callbacksÚ_remove_methodÚstrÚ_label)r   ÚklÚlabels      r   Ú__init__zContainer.__init__   s;   € ÝÔ0¸*¸ÐFÑFÔFˆŒØ"ˆÔØ$)Ð$5•c˜%‘j”j�j¸4ˆŒˆˆr   c                 ó¢   — t          j        | d„ ¬¦  «        D ]}|�|                     ¦   «          Œ| j        r|                      | ¦  «         d S d S )Nc                 ó,   — t          | t          ¦  «        S ©N)Ú
isinstancer   )Úxs    r   ú<lambda>z"Container.remove.<locals>.<lambda>   s   € ­
°1µfÑ(=Ô(=€ r   )Úscalarp)r   ÚflattenÚremover   )r   Úcs     r   r*   zContainer.remove   sm   € Ý”ØÐ=Ð=ð?ñ ?ô ?ð 	ð 	ˆAàˆ}Ø—’‘
”
�
øØÔð 	&Ø×Ò Ñ%Ô%Ð%Ð%Ð%ð	&ð 	&r   c                 ó>   — d„ t          j        | ¦  «        D ¦   «         S )Nc                 ó   — g | ]}|®|‘ŒS r$   © )Ú.0Úchilds     r   ú
<listcomp>z*Container.get_children.<locals>.<listcomp>!   s   € ÐLÐLÐL˜%¸%Ð:K�Ð:KÐ:KÐ:Kr   )r   r)   r   s    r   Úget_childrenzContainer.get_children    s    € ØLÐL¥5¤=°Ñ#6Ô#6ÐLÑLÔLÐLr   r$   )r
   Ú
__module__Ú__qualname__Ú__doc__r   r   r!   r*   r2   r   Ú	get_labelÚ	set_labelÚadd_callbackÚremove_callbackr   r.   r   r   r   r      s›   € € € € € ðð ðHð Hð Hð+ð +ð +ð@ð @ð @ð @ð
&ð &ð &ðMð Mð Mð Ô €IØÔ €IØÔ&€LØÔ,€OØŒ€H€H€Hr   r   c                   ó,   ‡ — e Zd ZdZddddœˆ fd„Zˆ xZS )ÚBarContainera4  
    Container for the artists of bar plots (e.g. created by `.Axes.bar`).

    The container can be treated as a tuple of the *patches* themselves.
    Additionally, you can access these and further parameters by the
    attributes.

    Attributes
    ----------
    patches : list of :class:`~matplotlib.patches.Rectangle`
        The artists of the bars.

    errorbar : None or :class:`~matplotlib.container.ErrorbarContainer`
        A container for the error bar artists if error bars are present.
        *None* otherwise.

    datavalues : None or array-like
        The underlying data values corresponding to the bars.

    orientation : {'vertical', 'horizontal'}, default: None
        If 'vertical', the bars are assumed to be vertical.
        If 'horizontal', the bars are assumed to be horizontal.

    N)Ú
datavaluesÚorientationc                ót   •— || _         || _        || _        || _         t	          ¦   «         j        |fi |¤Ž d S r$   )ÚpatchesÚerrorbarr<   r=   Úsuperr!   )r   r?   r@   r<   r=   r   Ú	__class__s         €r   r!   zBarContainer.__init__D   sE   ø€ àˆŒØ ˆŒØ$ˆŒØ&ˆÔØ�‰ŒÔ˜Ð+Ð+ FÐ+Ð+Ð+Ð+Ð+r   r$   ©r
   r3   r4   r5   r!   Ú__classcell__©rB   s   @r   r;   r;   *   sV   ø€ € € € € ðð ð2,¸TØ!ð,ð ,ð ,ð ,ð ,ð ,ð ,ð ,ð ,ð ,ð ,r   r;   c                   ó$   ‡ — e Zd ZdZdˆ fd„	Zˆ xZS )ÚErrorbarContaineraø  
    Container for the artists of error bars (e.g. created by `.Axes.errorbar`).

    The container can be treated as the *lines* tuple itself.
    Additionally, you can access these and further parameters by the
    attributes.

    Attributes
    ----------
    lines : tuple
        Tuple of ``(data_line, caplines, barlinecols)``.

        - data_line : A `~matplotlib.lines.Line2D` instance of x, y plot markers
          and/or line.
        - caplines : A tuple of `~matplotlib.lines.Line2D` instances of the error
          bar caps.
        - barlinecols : A tuple of `~matplotlib.collections.LineCollection` with the
          horizontal and vertical error ranges.

    has_xerr, has_yerr : bool
        ``True`` if the errorbar has x/y errors.

    Fc                 óf   •— || _         || _        || _         t          ¦   «         j        |fi |¤Ž d S r$   )ÚlinesÚhas_xerrÚhas_yerrrA   r!   )r   rI   rJ   rK   r   rB   s        €r   r!   zErrorbarContainer.__init__f   s=   ø€ ØˆŒ
Ø ˆŒØ ˆŒØ�‰ŒÔ˜Ð)Ð) &Ð)Ð)Ð)Ð)Ð)r   )FFrC   rE   s   @r   rG   rG   M   sG   ø€ € € € € ðð ð0*ð *ð *ð *ð *ð *ð *ð *ð *ð *r   rG   c                   ó"   ‡ — e Zd ZdZˆ fd„Zˆ xZS )ÚStemContaineraõ  
    Container for the artists created in a :meth:`.Axes.stem` plot.

    The container can be treated like a namedtuple ``(markerline, stemlines,
    baseline)``.

    Attributes
    ----------
    markerline : `~matplotlib.lines.Line2D`
        The artist of the markers at the stem heads.

    stemlines : `~matplotlib.collections.LineCollection`
        The artists of the vertical lines for all stems.

    baseline : `~matplotlib.lines.Line2D`
        The artist of the horizontal baseline.
    c                 ór   •— |\  }}}|| _         || _        || _         t          ¦   «         j        |fi |¤Ž dS )aZ  
        Parameters
        ----------
        markerline_stemlines_baseline : tuple
            Tuple of ``(markerline, stemlines, baseline)``.
            ``markerline`` contains the `.Line2D` of the markers,
            ``stemlines`` is a `.LineCollection` of the main lines,
            ``baseline`` is the `.Line2D` of the baseline.
        N)Ú
markerlineÚ	stemlinesÚbaselinerA   r!   )r   Úmarkerline_stemlines_baseliner   rO   rP   rQ   rB   s         €r   r!   zStemContainer.__init__   sM   ø€ ð +HÑ'ˆ
�I˜xØ$ˆŒØ"ˆŒØ ˆŒØ�‰ŒÔÐ6ÐAÐA¸&ÐAÐAÐAÐAÐAr   rC   rE   s   @r   rM   rM   m   sK   ø€ € € € € ðð ð"Bð Bð Bð Bð Bð Bð Bð Bð Br   rM   N)	Ú
matplotlibr   Úmatplotlib.artistr   r   r   r;   rG   rM   r.   r   r   ú<module>rU      sè   ðØ Ð Ð Ð Ð Ð Ø $Ð $Ð $Ð $Ð $Ð $ð"ð "ð "ð "ð "�ñ "ô "ð "ðJ ,ð  ,ð  ,ð  ,ð  ,�9ñ  ,ô  ,ð  ,ðF*ð *ð *ð *ð *˜	ñ *ô *ð *ð@ Bð  Bð  Bð  Bð  B�Iñ  Bô  Bð  Bð  Bð  Br   