MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / add_container

Method add_container

lib/matplotlib/axes/_base.py:2630–2639  ·  view source on GitHub ↗

Add a `.Container` to the Axes' containers; return the container.

(self, container)

Source from the content-addressed store, hash-verified

2628 return tab
2629
2630 def add_container(self, container):
2631 """
2632 Add a `.Container` to the Axes' containers; return the container.
2633 """
2634 label = container.get_label()
2635 if not label:
2636 container.set_label('_container%d' % len(self.containers))
2637 self.containers.append(container)
2638 container._remove_method = self.containers.remove
2639 return container
2640
2641 def _unit_change_handler(self, axis_name, event=None):
2642 """

Callers 4

stemMethod · 0.80
barMethod · 0.80
stemMethod · 0.80
errorbarMethod · 0.80

Calls 2

get_labelMethod · 0.45
set_labelMethod · 0.45

Tested by

no test coverage detected