From 29962068dbb36a081398593d936e4500ce1d76f8 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Wed, 7 Feb 2018 16:21:28 -0800 Subject: [PATCH] Bug fix to Line.insert_n_anchor_points --- topics/geometry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/topics/geometry.py b/topics/geometry.py index 2312e74b..8e3f910b 100644 --- a/topics/geometry.py +++ b/topics/geometry.py @@ -356,7 +356,7 @@ class Line(VMobject): def insert_n_anchor_points(self, n): if not self.path_arc: n_anchors = self.get_num_anchor_points() - new_num_points = 3*(n_anchors + n)+1 + new_num_points = 3*(n_anchors + n)-2 self.points = np.array([ self.point_from_proportion(alpha) for alpha in np.linspace(0, 1, new_num_points)