
    h                     t    S SK Jr  S SKJr   " S S\5      r " S S\5      r " S S\5      r " S	 S
\5      rg)    )cbook)Artistc                       \ rS rSrSrS rS rS
S jrS rS r	\
R                  r\
R                  r\
R                  r\
R                  r\
R                  rS	rg)	Container   z~
Base class for containers.

Containers are classes that collect semantically related Artists such as
the bars of a bar plot.
c                 L    S[        U 5      R                   S[        U 5       S3$ )N<z object of z	 artists>)type__name__len)selfs    F/var/www/html/env/lib/python3.13/site-packages/matplotlib/container.py__repr__Container.__repr__   s&    4:&&'{3t9+YGG    c                 2    [         R                  XS   5      $ )Nr   )tuple__new__)clsargskwargss      r   r   Container.__new__   s    }}Sq'**r   Nc                 |    [         R                  " S/S9U l        S U l        Ub  [	        U5      U l        g S U l        g )Npchanged)signals)r   CallbackRegistry
_callbacks_remove_methodstr_label)r   kllabels      r   __init__Container.__init__   s4    00*F"$)$5c%j4r   c                     [         R                  " U S S9 H  nUc  M  UR                  5         M     U R                  (       a  U R                  U 5        g g )Nc                 "    [        U [        5      $ N)
isinstancer   )xs    r   <lambda>"Container.remove.<locals>.<lambda>   s    
1f(=r   )scalarp)r   flattenremover   )r   cs     r   r.   Container.remove   sG    =?A}
? % r   c                 b    [         R                  " U 5       Vs/ s H	  oc  M  UPM     sn$ s  snf r'   )r   r-   )r   childs     r   get_childrenContainer.get_children    s%    #(==#6L#6%#6LLLs   ,,)r   r    r   r'   )r   
__module____qualname____firstlineno____doc__r   r   r#   r.   r3   r   	get_label	set_labeladd_callbackremove_callbackr   __static_attributes__ r   r   r   r      sZ    H+@
&M   I  I&&L,,OHr   r   c                   :   ^  \ rS rSrSrSSSS.U 4S jjjrSrU =r$ )BarContainer*   a  
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                X   > Xl         X l        X0l        X@l        [        TU ]  " U40 UD6  g r'   )patcheserrorbarrB   rC   superr#   )r   rE   rF   rB   rC   r   	__class__s         r   r#   BarContainer.__init__D   s*     $&+F+r   )rB   rF   rC   rE   r'   r   r5   r6   r7   r8   r#   r=   __classcell__rH   s   @r   r@   r@   *   s    2,T!, ,r   r@   c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )ErrorbarContainerM   a  
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.

c                 L   > Xl         X l        X0l        [        TU ]  " U40 UD6  g r'   )lineshas_xerrhas_yerrrG   r#   )r   rQ   rR   rS   r   rH   s        r   r#   ErrorbarContainer.__init__f   s$    
  )&)r   )rR   rS   rQ   )FFrJ   rL   s   @r   rN   rN   M   s    0* *r   rN   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )StemContainerm   a  
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                 V   > Uu  p4nX0l         X@l        XPl        [        TU ]  " U40 UD6  g)a  
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baselinerG   r#   )r   markerline_stemlines_baseliner   rY   rZ   r[   rH   s         r   r#   StemContainer.__init__   s2     +H'
x$" 6A&Ar   )r[   rY   rZ   rJ   rL   s   @r   rV   rV   m   s    "B Br   rV   N)	
matplotlibr   matplotlib.artistr   r   r   r@   rN   rV   r>   r   r   <module>r`      s@     $" "J ,9  ,F*	 *@ BI  Br   