Return an array containing the floating-point values of the positions.
(self)
| 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.""" |