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

Method add_positions

lib/matplotlib/collections.py:1985–1992  ·  view source on GitHub ↗

Add one or more events at the specified positions.

(self, position)

Source from the content-addressed store, hash-verified

1983 self.set_segments(segments)
1984
1985 def add_positions(self, position):
1986 """Add one or more events at the specified positions."""
1987 if position is None or (hasattr(position, 'len') and
1988 len(position) == 0):
1989 return
1990 positions = self.get_positions()
1991 positions = np.hstack([positions, np.asanyarray(position)])
1992 self.set_positions(positions)
1993 extend_positions = append_positions = add_positions
1994
1995 def is_horizontal(self):

Callers 1

Calls 2

get_positionsMethod · 0.95
set_positionsMethod · 0.95

Tested by 1