container

matplotlib.container

class matplotlib.container.BarContainer(patches, errorbar=None, **kwargs)

Bases: matplotlib.container.Container

class matplotlib.container.Container(kl, label=None)

Bases: tuple

Base class for containers.

add_callback(func)

Adds a callback function that will be called whenever one of the Artist‘s properties changes.

Returns an id that is useful for removing the callback with remove_callback() later.

get_children()
get_label()

Get the label used for this artist in the legend.

pchanged()

Fire an event when property changed, calling all of the registered callbacks.

remove()
remove_callback(oid)

Remove a callback based on its id.

See also

add_callback()
For adding callbacks
set_label(s)

Set the label to s for auto legend.

ACCEPTS: string or anything printable with ‘%s’ conversion.

set_remove_method(f)
class matplotlib.container.ErrorbarContainer(lines, has_xerr=False, has_yerr=False, **kwargs)

Bases: matplotlib.container.Container

class matplotlib.container.StemContainer(markerline_stemlines_baseline, **kwargs)

Bases: matplotlib.container.Container

© 2012–2017 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
http://matplotlib.org/2.0.2/api/container_api.html