On this page
matplotlib.container
- class matplotlib.container.BarContainer(*args, **kwargs)[source]
- 
    Bases: matplotlib.container.ContainerContainer 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: - 
           patcheslist of Rectangle
- 
           The artists of the bars. 
- 
           errorbarNone or ErrorbarContainer
- 
           A container for the error bar artists if error bars are present. None otherwise. 
- datavaluesNone 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. 
 
- 
           patcheslist of 
- class matplotlib.container.Container(*args, **kwargs)[source]
- 
    Bases: tupleBase class for containers. Containers are classes that collect semantically related Artists such as the bars of a bar plot. - add_callback(func)
- 
      Add a callback function that will be called whenever one of the Artist's properties changes.Parameters: - funccallable
- 
             The callback function. It must have the signature: def func(artist: Artist) -> Anywhere artist is the calling Artist. Return values may exist but are ignored.
 Returns: - int
- 
             The observer id associated with the callback. This id can be used for removing the callback with remove_callbacklater.
 See also 
 - get_children()[source]
 - get_label()
- 
      Return the label used for this artist in the legend. 
 - pchanged()
- 
      Call all of the registered callbacks. This function is triggered internally when a property is changed. See also 
 - remove()[source]
 - remove_callback(oid)
- 
      Remove a callback based on its observer id. See also 
 - set_label(s)
- 
      Set a label that will be displayed in the legend. Parameters: - sobject
- 
             s will be converted to a string by calling str.
 
 
- class matplotlib.container.ErrorbarContainer(*args, **kwargs)[source]
- 
    Bases: matplotlib.container.ContainerContainer 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: - linestuple
- 
           Tuple of (data_line, caplines, barlinecols).- data_line : Line2Dinstance of x, y plot markers and/or line.
- caplines : tuple of Line2Dinstances of the error bar caps.
- barlinecols : list of LineCollectionwith the horizontal and vertical error ranges.
 
- data_line : 
- has_xerr, has_yerrbool
- 
           Trueif the errorbar has x/y errors.
 
- class matplotlib.container.StemContainer(*args, **kwargs)[source]
- 
    Bases: matplotlib.container.ContainerContainer for the artists created in a Axes.stem()plot.The container can be treated like a namedtuple (markerline, stemlines, baseline).Attributes: Parameters: - markerline_stemlines_baselinetuple
- 
           Tuple of (markerline, stemlines, baseline).markerlinecontains theLineCollectionof the markers,stemlinesis aLineCollectionof the main lines,baselineis theLine2Dof the baseline.
 
© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
 https://matplotlib.org/3.4.3/api/container_api.html