Bases: matplotlib.container.Container
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.
Rectangle
The artists of the bars.
ErrorbarContainer
A container for the error bar artists if error bars are present. None otherwise.
The underlying data values corresponding to the bars.
If 'vertical', the bars are assumed to be vertical. If 'horizontal', the bars are assumed to be horizontal.
Bases: tuple
Base class for containers.
Containers are classes that collect semantically related Artists such as the bars of a bar plot.
Add a callback function that will be called whenever one of the Artist
's properties changes.
The callback function. It must have the signature:
def func(artist: Artist) -> Any
where artist is the calling Artist
. Return values may exist but are ignored.
The observer id associated with the callback. This id can be used for removing the callback with remove_callback
later.
See also
Return the label used for this artist in the legend.
Call all of the registered callbacks.
This function is triggered internally when a property is changed.
See also
Remove a callback based on its observer id.
See also
Bases: matplotlib.container.Container
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.
Tuple of (data_line, caplines, barlinecols)
.
Line2D
instance of x, y plot markers and/or line.Line2D
instances of the error bar caps.LineCollection
with the horizontal and vertical error ranges.True
if the errorbar has x/y errors.
Bases: matplotlib.container.Container
Container for the artists created in a Axes.stem()
plot.
The container can be treated like a namedtuple (markerline, stemlines,
baseline)
.
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.
© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/container_api.html