Files
old-parkingkoncept/parkingkonceptvenv/lib/python3.7/site-packages/matplotlib/__pycache__/container.cpython-37.pyc

116 lines
6.7 KiB
Plaintext
Raw Normal View History

2019-11-17 12:44:16 +01:00
B
U<>]<5D><00>@s\ddlmZddlmZGdd<03>de<05>ZGdd<05>de<06>ZGdd<07>de<06>ZGdd <09>d e<06>Z dS)
<EFBFBD>Nc@steZdZdZdd<03>Zdd<05>Zddd<08>Ze<07>d <09>d
d <0B><00>Z d d <0A>Z
dd<0F>Z dd<11>Z dd<13>Z dd<15>Zdd<17>Zdd<19>ZdS)<1B> Containerz<72>
Base class for containers.
Containers are classes that collect semantically related Artists such as
the bars of a bar plot.
cCsd<01>t|<00>jt|<00><01>S)Nz<{} object of {} artists>)<04>format<61>type<70>__name__<5F>len)<01>self<6C>r<00></tmp/pip-install-i8dhxrtk/matplotlib/matplotlib/container.py<70>__repr__ szContainer.__repr__cOst<00>||d<00>S)Nr)<02>tuple<6C>__new__)<03>cls<6C>args<67>kwargsrrr r szContainer.__new__NcCs&d|_d|_i|_d|_|<00>|<02>dS)NFr)Zeventson<6F>_oid<69>_propobservers<72>_remove_method<6F> set_label)r<00>kl<6B>labelrrr <00>__init__s
zContainer.__init__z3.0cCs
||_dS)N)r)r<00>frrr <00>set_remove_methodszContainer.set_remove_methodcCs@x*tj|dd<02>d<03>D]}|dk r|<01><02>qW|jr<|<00>|<00>dS)NcSs t|tj<02>S)N)<03>
isinstance<EFBFBD>martistZArtist)<01>xrrr <00><lambda>$<00>z"Container.remove.<locals>.<lambda>)Zscalarp)<04>cbook<6F>flatten<65>remover)r<00>crrr r "s  zContainer.removecCs|jS)zC
Get the label used for this artist in the legend.
)<01>_label)rrrr <00> get_label+szContainer.get_labelcCs&|dk rt|<01>|_nd|_|<00><02>dS)z<>
Set the label to *s* for auto legend.
Parameters
----------
s : object
Any object other than None gets converted to its `str`.
N)<03>strr"<00>pchanged)r<00>srrr r1s  zContainer.set_labelcCs"|j}||j|<|jd7_|S)z<>
Adds a callback function that will be called whenever one of
the :class:`Artist`'s properties changes.
Returns an *id* that is useful for removing the callback with
:meth:`remove_callback` later.
<20>)rr)r<00>func<6E>oidrrr <00> add_callback@s
zContainer.add_callbackcCs&y |j|=Wntk
r YnXdS)z<>
Remove a callback based on its *id*.
.. seealso::
:meth:`add_callback`
For adding callbacks
N)r<00>KeyError)rr)rrr <00>remove_callbackMs
 zContainer.remove_callbackcCs(x"t|j<01><02><00>D]\}}||<00>qWdS)zg
Fire an event when property changed, calling all of the
registered callbacks.
N)<03>listr<00>items)rr)r(rrr r%\szContainer.pchangedcCsdd<02>t<00>|<00>D<00>S)NcSsg|]}|dk r|<01>qS)Nr)<02>.0<EFBFBD>childrrr <00>
<listcomp>esz*Container.get_children.<locals>.<listcomp>)rr)rrrr <00> get_childrendszContainer.get_children)N)r<00>
__module__<EFBFBD> __qualname__<5F>__doc__r
r rr<00>
deprecatedrr r#rr*r,r%r2rrrr rs
  rc@seZdZdZddd<04>ZdS)<06> BarContainera
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.
NcKs ||_||_tj||f|<03>dS)N)<04>patches<65>errorbarrr)rr8r9rrrr r{szBarContainer.__init__)N)rr3r4r5rrrrr r7hsr7c@seZdZdZddd<04>ZdS)<07>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 : :class:`~matplotlib.lines.Line2D` instance of
x, y plot markers and/or line.
- caplines : tuple of :class:`~matplotlib.lines.Line2D` instances of
the error bar caps.
- barlinecols : list of :class:`~matplotlib.collections.LineCollection`
with the horizontal and vertical error ranges.
has_xerr, has_yerr : bool
``True`` if the errorbar has x/y errors.
FcKs&||_||_||_tj||f|<04>dS)N)<05>lines<65>has_xerr<72>has_yerrrr)rr;r<r=rrrr r<00>szErrorbarContainer.__init__N)FF)rr3r4r5rrrrr r:<00>sr:c@seZdZdZdd<03>ZdS)<05> 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 : :class:`~matplotlib.lines.Line2D`
The artist of the markers at the stem heads.
stemlines : list of :class:`~matplotlib.lines.Line2D`
The artists of the vertical lines for all stems.
baseline : :class:`~matplotlib.lines.Line2D`
The artist of the horizontal baseline.
cKs0|\}}}||_||_||_tj||f|<02>dS)a_
Parameters
----------
markerline_stemlines_baseline : tuple
Tuple of ``(markerline, stemlines, baseline)``.
``markerline`` contains the `LineCollection` of the markers,
``stemlines`` is a `LineCollection` of the main lines,
``baseline`` is the `Line2D` of the baseline.
N)<05>
markerline<EFBFBD> stemlines<65>baselinerr)rZmarkerline_stemlines_baselinerr?r@rArrr r<00>s
zStemContainer.__init__N)rr3r4r5rrrrr r><00>sr>)
Zmatplotlib.cbookrZmatplotlib.artistZartistrr rr7r:r>rrrr <00><module>s
 c