Skip to content

Commit de24343

Browse files
authored
fix plot issue in random_inverse_kinematics.py (#1007)
1 parent c76f747 commit de24343

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ArmNavigation/n_joint_arm_3d/NLinkArm3d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ def inverse_kinematics(self, ref_ee_pose, plot=False):
127127

128128
if plot:
129129
self.fig = plt.figure()
130-
self.ax = Axes3D(self.fig)
130+
self.ax = Axes3D(self.fig, auto_add_to_figure=False)
131+
self.fig.add_axes(self.ax)
131132

132133
x_list = []
133134
y_list = []

0 commit comments

Comments
 (0)