MCPcopy Index your code
hub / github.com/rawpython/remi / add_coord

Method add_coord

examples/svgplot_app.py:40–50  ·  view source on GitHub ↗

Adds a coord to the polyline and creates another circle

(self, x, y)

Source from the content-addressed store, hash-verified

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

Callers 7

scaleMethod · 0.95
set_valueMethod · 0.45
set_valueMethod · 0.45
add_dataMethod · 0.45
__init__Method · 0.45
add_arrow_coordMethod · 0.45
rhombus_polygonMethod · 0.45

Calls 2

appendMethod · 0.45
remove_childMethod · 0.45

Tested by

no test coverage detected