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

Method get_positions

lib/matplotlib/collections.py:1963–1968  ·  view source on GitHub ↗

Return an array containing the floating-point values of the positions.

(self)

Source from the content-addressed store, hash-verified

1961 self.set_positions(positions)
1962
1963 def get_positions(self):
1964 """
1965 Return an array containing the floating-point values of the positions.
1966 """
1967 pos = 0 if self.is_horizontal() else 1
1968 return [segment[0, pos] for segment in self.get_segments()]
1969
1970 def set_positions(self, positions):
1971 """Set the positions of the events."""

Calls 2

is_horizontalMethod · 0.95
get_segmentsMethod · 0.80