rL itddlmZddlmZGddeZGddeZGddeZGd d eZy ) )cbook)ArtistceZdZdZdZdZddZdZdZe jZ e jZ e jZ e jZ e jZy) Containerz Base class for containers. Containers are classes that collect semantically related Artists such as the bars of a bar plot. cLdt|jdt|dS)N)type__name__len)selfs Z/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/matplotlib/container.py__repr__zContainer.__repr__ s&4:&&'{3t9+YGGc4tj||dS)Nr)tuple__new__)clsargskwargss r rzContainer.__new__s}}S$q'**rNc~tjdg|_d|_|t ||_yd|_y)Npchanged)signals)rCallbackRegistry _callbacks_remove_methodstr_label)r kllabels r __init__zContainer.__init__s400*F"$)$5c%j 4 rctj|dD]}||j|jr|j|yy)Nc"t|tSN) isinstancer)xs r z"Container.remove..s 1f(=r)scalarp)rflattenremover)r cs r r)zContainer.removesL=? A}         % rcXtj|Dcgc]}|| c}Scc}wr#)rr()r childs r get_childrenzContainer.get_children s$#(==#6L%%:KLLLs''r#)r __module__ __qualname____doc__rrr r)r-r get_label set_label add_callbackremove_callbackrrr rrsZH+@ &M  I  I&&L,,OHrrc,eZdZdZddddfd ZxZS) 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 ||fi|yr#)patcheserrorbarr8r9superr )r r;r<r8r9r __class__s r r zBarContainer.__init__Ds2   $& +F+rr#r r.r/r0r __classcell__r>s@r r7r7*s2,T!,,rr7c$eZdZdZdfd ZxZS)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. c P||_||_||_t||fi|yr#)lineshas_xerrhas_yerrr=r )r rErFrGrr>s r r zErrorbarContainer.__init__fs*      )&)r)FFr?rAs@r rCrCMs0**rrCc"eZdZdZfdZxZS) 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 \|\}}}||_||_||_t||fi|y)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 stemlinesbaseliner=r )r markerline_stemlines_baselinerrKrLrMr>s r r zStemContainer.__init__s:+H' Ix$"   6A&Arr?rAs@r rIrIms"BBrrIN) matplotlibrmatplotlib.artistrrrr7rCrIr5rr rQs@$""J ,9 ,F* *@ BI Br