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

Method tops

lib/matplotlib/container.py:91–102  ·  view source on GitHub ↗

Return the values at the upper end of the bars. .. versionadded:: 3.11

(self)

Source from the content-addressed store, hash-verified

89
90 @property
91 def tops(self):
92 """
93 Return the values at the upper end of the bars.
94
95 .. versionadded:: 3.11
96 """
97 if self.orientation == 'vertical':
98 return [p.get_y() + p.get_height() for p in self.patches]
99 elif self.orientation == 'horizontal':
100 return [p.get_x() + p.get_width() for p in self.patches]
101 else:
102 raise ValueError("orientation must be 'vertical' or 'horizontal'.")
103
104 @property
105 def position_centers(self):

Callers

nothing calls this directly

Calls 4

get_yMethod · 0.45
get_heightMethod · 0.45
get_xMethod · 0.45
get_widthMethod · 0.45

Tested by

no test coverage detected