Adds a coord to the polyline and creates another circle
(self, x, y)
| 38 | self.y_factor = 1.0 |
| 39 | |
| 40 | def add_coord(self, x, y): |
| 41 | """ Adds a coord to the polyline and creates another circle |
| 42 | """ |
| 43 | x = x*self.x_factor |
| 44 | y = y*self.y_factor |
| 45 | self.plotData.add_coord(x, y) |
| 46 | self.circles_list.append(gui.SvgCircle(x, y, self.circle_radius)) |
| 47 | self.append(self.circles_list[-1]) |
| 48 | if len(self.circles_list) > self.maxlen: |
| 49 | self.remove_child(self.circles_list[0]) |
| 50 | del self.circles_list[0] |
| 51 | |
| 52 | def scale(self, x_factor, y_factor): |
| 53 | self.x_factor = x_factor/self.x_factor |
no test coverage detected