(self, x_factor, y_factor)
| 50 | del self.circles_list[0] |
| 51 | |
| 52 | def scale(self, x_factor, y_factor): |
| 53 | self.x_factor = x_factor/self.x_factor |
| 54 | self.y_factor = y_factor/self.y_factor |
| 55 | self.plotData.attributes['points'] = "" |
| 56 | tmpx = collections.deque() |
| 57 | tmpy = collections.deque() |
| 58 | |
| 59 | for c in self.circles_list: |
| 60 | self.remove_child(c) |
| 61 | self.circles_list = list() |
| 62 | |
| 63 | while len(self.plotData.coordsX)>0: |
| 64 | tmpx.append( self.plotData.coordsX.popleft() ) |
| 65 | tmpy.append( self.plotData.coordsY.popleft() ) |
| 66 | |
| 67 | while len(tmpx)>0: |
| 68 | self.add_coord(tmpx.popleft(), tmpy.popleft()) |
| 69 | |
| 70 | self.x_factor = x_factor |
| 71 | self.y_factor = y_factor |
| 72 | |
| 73 | |
| 74 | class SvgPlot(gui.Svg): |
no test coverage detected