Add one or more events at the specified positions.
(self, position)
| 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): |