error in plot_joints