Skip to content

Commit 3decd57

Browse files
committed
fix for Coords.add()
1 parent 1912b64 commit 3decd57

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mathics/builtin/graphics.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def pos(self):
7777

7878
def add(self, x, y):
7979
p = (self.p[0] + x, self.p[1] + y)
80-
return Coords(self.graphics, pos=p, d=self.d)
80+
return Coords(self.graphics, pos=p)
8181

8282

8383
class AxisCoords(Coords):
@@ -95,6 +95,9 @@ def pos(self):
9595
else:
9696
return p
9797

98+
def add(self, x, y):
99+
raise NotImplementedError
100+
98101

99102
def cut(value):
100103
"Cut values in graphics primitives (not displayed otherwise in SVG)"

0 commit comments

Comments
 (0)