Skip to content

Commit c762d90

Browse files
committed
Fixed axes issues
1 parent 98d1dd7 commit c762d90

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

roboticstoolbox/backends/PyPlot/RobotPlot.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,12 @@ def draw(self):
144144
# Remove oldjoint z coordinates
145145
if self.jointaxes:
146146
j = 0
147-
# for joint in self.joints:
148-
# joint.remove()
147+
148+
for joint in self.joints:
149+
self.ax.collections.remove(joint)
150+
151+
del self.joints
152+
self.joints = []
149153

150154
# Plot joint z coordinates
151155
for i in range(len(self.robot.links)):

0 commit comments

Comments
 (0)